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