Enum icu::collections::codepointtrie::toml::CodePointDataSlice
source · pub enum CodePointDataSlice<'a> {
U8(&'a [u8]),
U16(&'a [u16]),
U32(&'a [u32]),
}
Expand description
Data slice from a CodePointTrie
TOML.
ICU4C exports data as either u8
, u16
, or u32
, which may be converted
to other types as appropriate.
Variants§
U8(&'a [u8])
A serialized CodePointTrie
data array 8-bit values.
U16(&'a [u16])
A serialized CodePointTrie
data array 16-bit values.
U32(&'a [u32])
A serialized CodePointTrie
data array 32-bit values.
Auto Trait Implementations§
impl<'a> Freeze for CodePointDataSlice<'a>
impl<'a> RefUnwindSafe for CodePointDataSlice<'a>
impl<'a> Send for CodePointDataSlice<'a>
impl<'a> Sync for CodePointDataSlice<'a>
impl<'a> Unpin for CodePointDataSlice<'a>
impl<'a> UnwindSafe for CodePointDataSlice<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more