#[non_exhaustive]pub enum PropertyCodePointMap<'data, T: TrieValue> {
CodePointTrie(CodePointTrie<'data, T>),
}Expand description
A map efficiently storing data about individual characters.
This data enum is extensible, more backends may be added in the future. Old data can be used with newer code but not vice versa.
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CodePointTrie(CodePointTrie<'data, T>)
A codepoint trie storing the data
Trait Implementationsยง
Sourceยงimpl<'data, T: TrieValue> Bake for PropertyCodePointMap<'data, T>where
CodePointTrie<'data, T>: Bake,
impl<'data, T: TrieValue> Bake for PropertyCodePointMap<'data, T>where
CodePointTrie<'data, T>: Bake,
Sourceยงfn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Sourceยงimpl<'data, T: TrieValue> BakeSize for PropertyCodePointMap<'data, T>where
CodePointTrie<'data, T>: BakeSize,
impl<'data, T: TrieValue> BakeSize for PropertyCodePointMap<'data, T>where
CodePointTrie<'data, T>: BakeSize,
Sourceยงfn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
Sourceยงimpl<'data, T: Clone + TrieValue> Clone for PropertyCodePointMap<'data, T>
impl<'data, T: Clone + TrieValue> Clone for PropertyCodePointMap<'data, T>
Sourceยงfn clone(&self) -> PropertyCodePointMap<'data, T>
fn clone(&self) -> PropertyCodePointMap<'data, T>
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl<'de: 'data, 'data, T> Deserialize<'de> for PropertyCodePointMap<'data, T>where
T: Deserialize<'de> + TrieValue,
impl<'de: 'data, 'data, T> Deserialize<'de> for PropertyCodePointMap<'data, T>where
T: Deserialize<'de> + TrieValue,
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> MaybeAsVarULE for PropertyCodePointMap<'_, T>
impl<T: TrieValue> MaybeAsVarULE for PropertyCodePointMap<'_, T>
Sourceยงimpl<T: TrieValue> MaybeEncodeAsVarULE for PropertyCodePointMap<'_, T>
Available on crate feature datagen only.
impl<T: TrieValue> MaybeEncodeAsVarULE for PropertyCodePointMap<'_, T>
Available on crate feature
datagen only.Sourceยงtype EncodeableStruct<'b> = &'b [()]
where
Self: 'b
type EncodeableStruct<'b> = &'b [()] where Self: 'b
The type returned by
Self::maybe_as_encodeable.Sourceยงfn maybe_as_encodeable<'b>(&'b self) -> Option<Self::EncodeableStruct<'b>>
fn maybe_as_encodeable<'b>(&'b self) -> Option<Self::EncodeableStruct<'b>>
Returns something encodeable to the
MaybeAsVarULE::EncodedStruct that represents
this data struct, or None if the data struct does not support this representation.Sourceยงimpl<'data, T: PartialEq + TrieValue> PartialEq for PropertyCodePointMap<'data, T>
impl<'data, T: PartialEq + TrieValue> PartialEq for PropertyCodePointMap<'data, T>
Sourceยงfn eq(&self, other: &PropertyCodePointMap<'data, T>) -> bool
fn eq(&self, other: &PropertyCodePointMap<'data, T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Sourceยงimpl<'data, T> Serialize for PropertyCodePointMap<'data, T>
impl<'data, T> Serialize for PropertyCodePointMap<'data, T>
Sourceยงimpl<'yoke, T> Yokeable<'yoke> for PropertyCodePointMap<'static, T>where
T: 'static + TrieValue,
impl<'yoke, T> Yokeable<'yoke> for PropertyCodePointMap<'static, T>where
T: 'static + TrieValue,
Sourceยงtype Output = PropertyCodePointMap<'yoke, T>
type Output = PropertyCodePointMap<'yoke, T>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Sourceยงfn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Sourceยงimpl<'zf, 'zf_inner, T: TrieValue> ZeroFrom<'zf, PropertyCodePointMap<'zf_inner, T>> for PropertyCodePointMap<'zf, T>
impl<'zf, 'zf_inner, T: TrieValue> ZeroFrom<'zf, PropertyCodePointMap<'zf_inner, T>> for PropertyCodePointMap<'zf, T>
Sourceยงfn zero_from(this: &'zf PropertyCodePointMap<'zf_inner, T>) -> Self
fn zero_from(this: &'zf PropertyCodePointMap<'zf_inner, T>) -> Self
Clone the other
C into a struct that may retain references into C.impl<'data, T: Eq + TrieValue> Eq for PropertyCodePointMap<'data, T>
impl<'data, T: TrieValue> StructuralPartialEq for PropertyCodePointMap<'data, T>
Auto Trait Implementationsยง
impl<'data, T> Freeze for PropertyCodePointMap<'data, T>where
T: Freeze,
impl<'data, T> RefUnwindSafe for PropertyCodePointMap<'data, T>
impl<'data, T> Send for PropertyCodePointMap<'data, T>
impl<'data, T> Sync for PropertyCodePointMap<'data, T>
impl<'data, T> Unpin for PropertyCodePointMap<'data, T>
impl<'data, T> UnsafeUnpin for PropertyCodePointMap<'data, T>where
T: UnsafeUnpin,
impl<'data, T> UnwindSafe for PropertyCodePointMap<'data, T>
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