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<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
source§impl<T: TrieValue> TryFrom<&CodePointTrieToml> for CodePointTrie<'static, T>
impl<T: TrieValue> TryFrom<&CodePointTrieToml> for CodePointTrie<'static, T>
source§fn 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.
source§impl 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§
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