pub struct CollationMetadata {
pub bits: u32,
}
Expand description
Each non-alias collation that the data provider knows about explicitly has an data entry at least for this struct.
🚧 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§
§bits: u32
See the mask constants in the impl
block for the
bit layout. The other bits are ignored: They could
be from the future if their semantics such that
old code may ignore them.
Note: At present, it’s bogus for the bit for “upper first” to be set if “case first” isn’t also set. However, the methods handle this case gracefully, so there is no need for invariant validation.
Trait Implementations§
Source§impl Bake for CollationMetadata
impl Bake for CollationMetadata
Source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Source§impl BakeSize for CollationMetadata
impl BakeSize for CollationMetadata
Source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
Source§impl Clone for CollationMetadata
impl Clone for CollationMetadata
Source§fn clone(&self) -> CollationMetadata
fn clone(&self) -> CollationMetadata
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 Debug for CollationMetadata
impl Debug for CollationMetadata
Source§impl<'de> Deserialize<'de> for CollationMetadata
impl<'de> Deserialize<'de> for CollationMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CollationMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CollationMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MaybeAsVarULE for CollationMetadata
impl MaybeAsVarULE for CollationMetadata
Source§impl MaybeEncodeAsVarULE for CollationMetadata
impl MaybeEncodeAsVarULE for CollationMetadata
Source§fn maybe_encode_as_varule(
&self,
) -> Option<&<CollationMetadata as MaybeAsVarULE>::EncodedStruct>
fn maybe_encode_as_varule( &self, ) -> Option<&<CollationMetadata as MaybeAsVarULE>::EncodedStruct>
Returns the
MaybeAsVarULE::EncodedStruct
that represents this data struct,
or None
if the data struct does not support this representation.Source§impl PartialEq for CollationMetadata
impl PartialEq for CollationMetadata
Source§impl Serialize for CollationMetadata
impl Serialize for CollationMetadata
Source§fn 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
Source§impl<'a> Yokeable<'a> for CollationMetadatawhere
CollationMetadata: Sized,
impl<'a> Yokeable<'a> for CollationMetadatawhere
CollationMetadata: Sized,
Source§type Output = CollationMetadata
type Output = CollationMetadata
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
Source§fn transform_owned(self) -> <CollationMetadata as Yokeable<'a>>::Output
fn transform_owned(self) -> <CollationMetadata as Yokeable<'a>>::Output
Source§unsafe fn make(
this: <CollationMetadata as Yokeable<'a>>::Output,
) -> CollationMetadata
unsafe fn make( this: <CollationMetadata as Yokeable<'a>>::Output, ) -> CollationMetadata
This method can be used to cast away
Self<'a>
’s lifetime. Read moreSource§fn transform_mut<F>(&'a mut self, f: F)
fn transform_mut<F>(&'a mut self, f: F)
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moreSource§impl<'zf> ZeroFrom<'zf, CollationMetadata> for CollationMetadata
impl<'zf> ZeroFrom<'zf, CollationMetadata> for CollationMetadata
Source§fn zero_from(this: &'zf CollationMetadata) -> CollationMetadata
fn zero_from(this: &'zf CollationMetadata) -> CollationMetadata
Clone the other
C
into a struct that may retain references into C
.impl Copy for CollationMetadata
impl StructuralPartialEq for CollationMetadata
Auto Trait Implementations§
impl Freeze for CollationMetadata
impl RefUnwindSafe for CollationMetadata
impl Send for CollationMetadata
impl Sync for CollationMetadata
impl Unpin for CollationMetadata
impl UnwindSafe for CollationMetadata
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