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: u32See 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.
Implementationsยง
Sourceยงimpl CollationMetadata
impl CollationMetadata
const MAX_VARIABLE_MASK: u32 = 0b11
const TAILORED_MASK: u32
const TAILORED_DIACRITICS_MASK: u32
const REORDERING_MASK: u32
const LITHUANIAN_DOT_ABOVE_MASK: u32
const BACWARD_SECOND_LEVEL_MASK: u32
const ALTERNATE_SHIFTED_MASK: u32
const CASE_FIRST_MASK: u32
const UPPER_FIRST_MASK: u32
pub(crate) fn max_variable(self) -> MaxVariable
pub(crate) fn tailored(self) -> bool
Sourcepub(crate) fn tailored_diacritics(self) -> bool
pub(crate) fn tailored_diacritics(self) -> bool
Vietnamese and Ewe
Sourcepub(crate) fn lithuanian_dot_above(self) -> bool
pub(crate) fn lithuanian_dot_above(self) -> bool
Lithuanian
Sourcepub(crate) fn backward_second_level(self) -> bool
pub(crate) fn backward_second_level(self) -> bool
Canadian French
pub(crate) fn reordering(self) -> bool
Sourcepub(crate) fn alternate_shifted(self) -> bool
pub(crate) fn alternate_shifted(self) -> bool
Thai
pub(crate) fn case_first(self) -> CollationCaseFirst
Trait Implementationsยง
Sourceยงimpl Clone for CollationMetadata
impl Clone for CollationMetadata
Sourceยงfn clone(&self) -> CollationMetadata
fn clone(&self) -> CollationMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท 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 MaybeAsVarULE for CollationMetadata
impl MaybeAsVarULE for CollationMetadata
Sourceยงimpl PartialEq for CollationMetadata
impl PartialEq for CollationMetadata
Sourceยงfn eq(&self, other: &CollationMetadata) -> bool
fn eq(&self, other: &CollationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Sourceยงimpl<'yoke> Yokeable<'yoke> for CollationMetadatawhere
Self: Sized,
impl<'yoke> Yokeable<'yoke> for CollationMetadatawhere
Self: 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) -> Self::Output
fn transform_owned(self) -> Self::Output
Sourceยงimpl<'zf> ZeroFrom<'zf, CollationMetadata> for CollationMetadata
impl<'zf> ZeroFrom<'zf, CollationMetadata> for CollationMetadata
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 UnsafeUnpin 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