Struct icu::collections::codepointtrie::toml::CodePointTrieToml
source · pub struct CodePointTrieToml { /* private fields */ }
Expand description
A Serde-compatible struct for reading serialized CodePointTrie
TOML files
generated by ICU4C.
Use TryInto
to convert CodePointTrieToml
to a proper CodePointTrie
.
Implementations§
source§impl CodePointTrieToml
impl CodePointTrieToml
sourcepub fn index_slice(&self) -> &[u16]
pub fn index_slice(&self) -> &[u16]
Gets the index
slice.
sourcepub fn data_slice(&self) -> Result<CodePointDataSlice<'_>, Error>
pub fn data_slice(&self) -> Result<CodePointDataSlice<'_>, Error>
Gets the data
slice.
Trait Implementations§
source§impl<'de> Deserialize<'de> for CodePointTrieToml
impl<'de> Deserialize<'de> for CodePointTrieToml
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodePointTrieToml, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodePointTrieToml, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> TryFrom<&CodePointTrieToml> for CodePointTrie<'static, T>where
T: TrieValue,
impl<T> TryFrom<&CodePointTrieToml> for CodePointTrie<'static, T>where
T: TrieValue,
source§fn try_from(
cpt_data: &CodePointTrieToml,
) -> Result<CodePointTrie<'static, T>, <CodePointTrie<'static, T> as TryFrom<&CodePointTrieToml>>::Error>
fn try_from( cpt_data: &CodePointTrieToml, ) -> Result<CodePointTrie<'static, T>, <CodePointTrie<'static, T> as TryFrom<&CodePointTrieToml>>::Error>
Performs the conversion.
source§impl TryFrom<&CodePointTrieToml> for CodePointTrieHeader
impl TryFrom<&CodePointTrieToml> for CodePointTrieHeader
source§fn try_from(
cpt_data: &CodePointTrieToml,
) -> Result<CodePointTrieHeader, <CodePointTrieHeader as TryFrom<&CodePointTrieToml>>::Error>
fn try_from( cpt_data: &CodePointTrieToml, ) -> Result<CodePointTrieHeader, <CodePointTrieHeader as TryFrom<&CodePointTrieToml>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CodePointTrieToml
impl RefUnwindSafe for CodePointTrieToml
impl Send for CodePointTrieToml
impl Sync for CodePointTrieToml
impl Unpin for CodePointTrieToml
impl UnwindSafe for CodePointTrieToml
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