Struct icu::collections::char16trie::Char16Trie
source · [−]pub struct Char16Trie<'data> { /* private fields */ }
Expand description
This struct represents a de-serialized Char16Trie that was exported from ICU binary data.
Light-weight, non-const reader class for a CharsTrie. Traverses a char-serialized data structure with minimal state, for mapping 16-bit-unit sequences to non-negative integer values.
For more information:
Implementations
sourceimpl<'data> Char16Trie<'data>
impl<'data> Char16Trie<'data>
sourcepub fn new(data: ZeroVec<'data, u16>) -> Char16Trie<'data>
pub fn new(data: ZeroVec<'data, u16>) -> Char16Trie<'data>
Returns a new Char16Trie
with ownership of the provided data.
sourcepub fn iter(&self) -> Char16TrieIterator<'_>
pub fn iter(&self) -> Char16TrieIterator<'_>
Returns a new Char16TrieIterator
backed by borrowed data from the trie
data
Trait Implementations
sourceimpl<'data> Bake for Char16Trie<'data>
impl<'data> Bake for Char16Trie<'data>
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl<'data> Clone for Char16Trie<'data>
impl<'data> Clone for Char16Trie<'data>
sourcefn clone(&self) -> Char16Trie<'data>
fn clone(&self) -> Char16Trie<'data>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'data> Debug for Char16Trie<'data>
impl<'data> Debug for Char16Trie<'data>
sourceimpl<'de, 'data> Deserialize<'de> for Char16Trie<'data> where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for Char16Trie<'data> where
'de: 'data,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Char16Trie<'data>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Char16Trie<'data>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'data> PartialEq<Char16Trie<'data>> for Char16Trie<'data>
impl<'data> PartialEq<Char16Trie<'data>> for Char16Trie<'data>
sourcefn eq(&self, other: &Char16Trie<'data>) -> bool
fn eq(&self, other: &Char16Trie<'data>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Char16Trie<'data>) -> bool
fn ne(&self, other: &Char16Trie<'data>) -> bool
This method tests for !=
.
sourceimpl<'data> Serialize for Char16Trie<'data>
impl<'data> Serialize for Char16Trie<'data>
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl<'zf, 'zf_inner> ZeroFrom<'zf, Char16Trie<'zf_inner>> for Char16Trie<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, Char16Trie<'zf_inner>> for Char16Trie<'zf>
sourcefn zero_from(this: &'zf Char16Trie<'zf_inner>) -> Char16Trie<'zf>
fn zero_from(this: &'zf Char16Trie<'zf_inner>) -> Char16Trie<'zf>
Clone the other C
into a struct that may retain references into C
.
impl<'data> Eq for Char16Trie<'data>
impl<'data> StructuralEq for Char16Trie<'data>
impl<'data> StructuralPartialEq for Char16Trie<'data>
Auto Trait Implementations
impl<'data> RefUnwindSafe for Char16Trie<'data>
impl<'data> Send for Char16Trie<'data>
impl<'data> Sync for Char16Trie<'data>
impl<'data> Unpin for Char16Trie<'data>
impl<'data> UnwindSafe for Char16Trie<'data>
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
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more