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<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: TrieValue> TryFrom<&CodePointTrieToml> for CodePointTrie<'static, T>
impl<T: TrieValue> TryFrom<&CodePointTrieToml> for CodePointTrie<'static, T>
sourcefn try_from(
cpt_data: &CodePointTrieToml
) -> Result<CodePointTrie<'static, T>, Self::Error>
fn try_from(
cpt_data: &CodePointTrieToml
) -> Result<CodePointTrie<'static, T>, Self::Error>
Performs the conversion.
sourceimpl TryFrom<&CodePointTrieToml> for CodePointTrieHeader
impl TryFrom<&CodePointTrieToml> for CodePointTrieHeader
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