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
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for CodePointTrieToml
impl<'de> Deserialize<'de> for CodePointTrieToml
sourcefn 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
sourceimpl<'_> TryFrom<&'_ CodePointTrieToml> for CodePointTrieHeader
impl<'_> TryFrom<&'_ CodePointTrieToml> for CodePointTrieHeader
sourcefn 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.
sourceimpl<'_, T> TryFrom<&'_ CodePointTrieToml> for CodePointTrie<'static, T> where
T: TrieValue,
impl<'_, T> TryFrom<&'_ CodePointTrieToml> for CodePointTrie<'static, T> where
T: TrieValue,
sourcefn 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.
Auto Trait Implementations
impl RefUnwindSafe for CodePointTrieToml
impl Send for CodePointTrieToml
impl Sync for CodePointTrieToml
impl Unpin for CodePointTrieToml
impl UnwindSafe for CodePointTrieToml
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more