pub struct CollationSpecialPrimaries<'data> {
pub last_primaries: ZeroVec<'data, u16>,
pub numeric_primary: u8,
}
Expand description
Special primaries associated with the root collation
๐ง 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ยง
ยงlast_primaries: ZeroVec<'data, u16>
The primaries corresponding to MaxVariable
character classes packed so that each fits in
16 bits. Length must match the number of enum
variants in MaxVariable
, currently 4.
numeric_primary: u8
The high 8 bits of the numeric primary
Trait Implementationsยง
Sourceยงimpl<'data> Clone for CollationSpecialPrimaries<'data>
impl<'data> Clone for CollationSpecialPrimaries<'data>
Sourceยงfn clone(&self) -> CollationSpecialPrimaries<'data>
fn clone(&self) -> CollationSpecialPrimaries<'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 CollationSpecialPrimaries<'data>
impl<'data> Debug for CollationSpecialPrimaries<'data>
Sourceยงimpl<'de, 'data> Deserialize<'de> for CollationSpecialPrimaries<'data>where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for CollationSpecialPrimaries<'data>where
'de: 'data,
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<CollationSpecialPrimaries<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CollationSpecialPrimaries<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl MaybeAsVarULE for CollationSpecialPrimaries<'_>
impl MaybeAsVarULE for CollationSpecialPrimaries<'_>
Sourceยงimpl<'data> PartialEq for CollationSpecialPrimaries<'data>
impl<'data> PartialEq for CollationSpecialPrimaries<'data>
Sourceยงfn eq(&self, other: &CollationSpecialPrimaries<'data>) -> bool
fn eq(&self, other: &CollationSpecialPrimaries<'data>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Sourceยงimpl<'a> Yokeable<'a> for CollationSpecialPrimaries<'static>
impl<'a> Yokeable<'a> for CollationSpecialPrimaries<'static>
Sourceยงtype Output = CollationSpecialPrimaries<'a>
type Output = CollationSpecialPrimaries<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
Sourceยงfn transform(
&'a self,
) -> &'a <CollationSpecialPrimaries<'static> as Yokeable<'a>>::Output
fn transform( &'a self, ) -> &'a <CollationSpecialPrimaries<'static> as Yokeable<'a>>::Output
Sourceยงfn transform_owned(
self,
) -> <CollationSpecialPrimaries<'static> as Yokeable<'a>>::Output
fn transform_owned( self, ) -> <CollationSpecialPrimaries<'static> as Yokeable<'a>>::Output
Sourceยงunsafe fn make(
this: <CollationSpecialPrimaries<'static> as Yokeable<'a>>::Output,
) -> CollationSpecialPrimaries<'static>
unsafe fn make( this: <CollationSpecialPrimaries<'static> as Yokeable<'a>>::Output, ) -> CollationSpecialPrimaries<'static>
This method can be used to cast away
Self<'a>
โs lifetime. Read moreSourceยงfn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut <CollationSpecialPrimaries<'static> as Yokeable<'a>>::Output),
fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut <CollationSpecialPrimaries<'static> 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 moreSourceยงimpl<'zf, 'zf_inner> ZeroFrom<'zf, CollationSpecialPrimaries<'zf_inner>> for CollationSpecialPrimaries<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, CollationSpecialPrimaries<'zf_inner>> for CollationSpecialPrimaries<'zf>
Sourceยงfn zero_from(
this: &'zf CollationSpecialPrimaries<'zf_inner>,
) -> CollationSpecialPrimaries<'zf>
fn zero_from( this: &'zf CollationSpecialPrimaries<'zf_inner>, ) -> CollationSpecialPrimaries<'zf>
Clone the other
C
into a struct that may retain references into C
.impl<'data> StructuralPartialEq for CollationSpecialPrimaries<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for CollationSpecialPrimaries<'data>
impl<'data> RefUnwindSafe for CollationSpecialPrimaries<'data>
impl<'data> Send for CollationSpecialPrimaries<'data>
impl<'data> Sync for CollationSpecialPrimaries<'data>
impl<'data> Unpin for CollationSpecialPrimaries<'data>
impl<'data> UnwindSafe for CollationSpecialPrimaries<'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