pub struct CollationData<'data> {
pub trie: CodePointTrie<'data, u32>,
pub ces: ZeroVec<'data, u64>,
pub ce32s: ZeroVec<'data, u32>,
pub contexts: ZeroVec<'data, u16>,
}
Expand description
The main collation data either for the root or for a tailoring
๐ง 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.
Fieldsยง
ยงtrie: CodePointTrie<'data, u32>
Mapping from char
to CollationElement32
(represented
as its u32
bits).
ces: ZeroVec<'data, u64>
CollationElement
s used in expansions and offset CE32s
(represented as their u64
bits)
ce32s: ZeroVec<'data, u32>
CollationElement32
s used in expansions and as defaults
for digits when the numeric mode is not in use
contexts: ZeroVec<'data, u16>
Defaults and tries for prefix and contraction matching
Trait Implementationsยง
Sourceยงimpl<'data> Clone for CollationData<'data>
impl<'data> Clone for CollationData<'data>
Sourceยงfn clone(&self) -> CollationData<'data>
fn clone(&self) -> CollationData<'data>
Returns a copy 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<'data> Debug for CollationData<'data>
impl<'data> Debug for CollationData<'data>
Sourceยงimpl<'de: 'data, 'data> Deserialize<'de> for CollationData<'data>
impl<'de: 'data, 'data> Deserialize<'de> for CollationData<'data>
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 MaybeAsVarULE for CollationData<'_>
impl MaybeAsVarULE for CollationData<'_>
Sourceยงimpl<'data> PartialEq for CollationData<'data>
impl<'data> PartialEq for CollationData<'data>
Sourceยงimpl<'a> Yokeable<'a> for CollationData<'static>
impl<'a> Yokeable<'a> for CollationData<'static>
Sourceยงtype Output = CollationData<'a>
type Output = CollationData<'a>
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> ZeroFrom<'zf, CollationData<'zf_inner>> for CollationData<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, CollationData<'zf_inner>> for CollationData<'zf>
Sourceยงfn zero_from(this: &'zf CollationData<'zf_inner>) -> Self
fn zero_from(this: &'zf CollationData<'zf_inner>) -> Self
Clone the other
C
into a struct that may retain references into C
.impl<'data> StructuralPartialEq for CollationData<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for CollationData<'data>
impl<'data> RefUnwindSafe for CollationData<'data>
impl<'data> Send for CollationData<'data>
impl<'data> Sync for CollationData<'data>
impl<'data> Unpin for CollationData<'data>
impl<'data> UnwindSafe for CollationData<'data>
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more