Enum icu::properties::provider::PropertyCodePointMapV1
source · [−]#[non_exhaustive]
pub enum PropertyCodePointMapV1<'data, T> where
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.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
CodePointTrie(CodePointTrie<'data, T>)
A codepoint trie storing the data
Trait Implementations
sourceimpl<'data, T> Bake for PropertyCodePointMapV1<'data, T> where
T: TrieValue,
CodePointTrie<'data, T>: Bake,
impl<'data, T> Bake for PropertyCodePointMapV1<'data, T> where
T: TrieValue,
CodePointTrie<'data, T>: Bake,
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl<'data, T> Clone for PropertyCodePointMapV1<'data, T> where
T: Clone + TrieValue,
impl<'data, T> Clone for PropertyCodePointMapV1<'data, T> where
T: Clone + TrieValue,
sourcefn clone(&self) -> PropertyCodePointMapV1<'data, T>
fn clone(&self) -> PropertyCodePointMapV1<'data, T>
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, T> Debug for PropertyCodePointMapV1<'data, T> where
T: Debug + TrieValue,
impl<'data, T> Debug for PropertyCodePointMapV1<'data, T> where
T: Debug + TrieValue,
sourceimpl<'de, 'data, T> Deserialize<'de> for PropertyCodePointMapV1<'data, T> where
'de: 'data,
T: TrieValue + Deserialize<'de>,
impl<'de, 'data, T> Deserialize<'de> for PropertyCodePointMapV1<'data, T> where
'de: 'data,
T: TrieValue + Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<PropertyCodePointMapV1<'data, T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PropertyCodePointMapV1<'data, T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'data, T> PartialEq<PropertyCodePointMapV1<'data, T>> for PropertyCodePointMapV1<'data, T> where
T: PartialEq<T> + TrieValue,
impl<'data, T> PartialEq<PropertyCodePointMapV1<'data, T>> for PropertyCodePointMapV1<'data, T> where
T: PartialEq<T> + TrieValue,
sourcefn eq(&self, other: &PropertyCodePointMapV1<'data, T>) -> bool
fn eq(&self, other: &PropertyCodePointMapV1<'data, T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PropertyCodePointMapV1<'data, T>) -> bool
fn ne(&self, other: &PropertyCodePointMapV1<'data, T>) -> bool
This method tests for !=
.
sourceimpl<'data, T> Serialize for PropertyCodePointMapV1<'data, T> where
T: TrieValue + Serialize,
impl<'data, T> Serialize for PropertyCodePointMapV1<'data, T> where
T: TrieValue + Serialize,
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<'a, T> Yokeable<'a> for PropertyCodePointMapV1<'static, T> where
T: TrieValue + 'static,
impl<'a, T> Yokeable<'a> for PropertyCodePointMapV1<'static, T> where
T: TrieValue + 'static,
type Output = PropertyCodePointMapV1<'a, T>
type Output = PropertyCodePointMapV1<'a, T>
This type MUST be Self
with the 'static
replaced with 'a
, i.e. Self<'a>
sourcefn transform(
&'a self
) -> &'a <PropertyCodePointMapV1<'static, T> as Yokeable<'a>>::Output
fn transform(
&'a self
) -> &'a <PropertyCodePointMapV1<'static, T> as Yokeable<'a>>::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(
self
) -> <PropertyCodePointMapV1<'static, T> as Yokeable<'a>>::Output
fn transform_owned(
self
) -> <PropertyCodePointMapV1<'static, T> as Yokeable<'a>>::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
sourceunsafe fn make(
this: <PropertyCodePointMapV1<'static, T> as Yokeable<'a>>::Output
) -> PropertyCodePointMapV1<'static, T>
unsafe fn make(
this: <PropertyCodePointMapV1<'static, T> as Yokeable<'a>>::Output
) -> PropertyCodePointMapV1<'static, T>
This method can be used to cast away Self<'a>
’s lifetime. Read more
sourcefn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut <PropertyCodePointMapV1<'static, T> as Yokeable<'a>>::Output),
fn transform_mut<F>(&'a mut self, f: F) where
F: 'static + for<'b> FnOnce(&'b mut <PropertyCodePointMapV1<'static, T> as Yokeable<'a>>::Output),
This method must cast self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read more
sourceimpl<'zf, 'zf_inner, T> ZeroFrom<'zf, PropertyCodePointMapV1<'zf_inner, T>> for PropertyCodePointMapV1<'zf, T> where
T: TrieValue,
CodePointTrie<'zf, T>: ZeroFrom<'zf, CodePointTrie<'zf_inner, T>>,
impl<'zf, 'zf_inner, T> ZeroFrom<'zf, PropertyCodePointMapV1<'zf_inner, T>> for PropertyCodePointMapV1<'zf, T> where
T: TrieValue,
CodePointTrie<'zf, T>: ZeroFrom<'zf, CodePointTrie<'zf_inner, T>>,
sourcefn zero_from(
this: &'zf PropertyCodePointMapV1<'zf_inner, T>
) -> PropertyCodePointMapV1<'zf, T>
fn zero_from(
this: &'zf PropertyCodePointMapV1<'zf_inner, T>
) -> PropertyCodePointMapV1<'zf, T>
Clone the other C
into a struct that may retain references into C
.
impl<'data, T> Eq for PropertyCodePointMapV1<'data, T> where
T: Eq + TrieValue,
impl<'a, T> IsCovariant<'a> for PropertyCodePointMapV1<'a, T> where
T: TrieValue + 'static,
impl<'data, T> StructuralEq for PropertyCodePointMapV1<'data, T> where
T: TrieValue,
impl<'data, T> StructuralPartialEq for PropertyCodePointMapV1<'data, T> where
T: TrieValue,
Auto Trait Implementations
impl<'data, T> RefUnwindSafe for PropertyCodePointMapV1<'data, T> where
T: RefUnwindSafe,
<T as AsULE>::ULE: RefUnwindSafe,
impl<'data, T> Send for PropertyCodePointMapV1<'data, T> where
T: Send,
<T as AsULE>::ULE: Send + Sync,
impl<'data, T> Sync for PropertyCodePointMapV1<'data, T> where
T: Sync,
<T as AsULE>::ULE: Sync,
impl<'data, T> Unpin for PropertyCodePointMapV1<'data, T> where
T: Unpin,
<T as AsULE>::ULE: Unpin,
impl<'data, T> UnwindSafe for PropertyCodePointMapV1<'data, T> where
T: UnwindSafe,
<T as AsULE>::ULE: UnwindSafe + RefUnwindSafe,
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