Struct icu_collator::provider::CollationMetadataV1
source · pub struct CollationMetadataV1 {
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.
Implementations§
source§impl CollationMetadataV1
impl CollationMetadataV1
const MAX_VARIABLE_MASK: u32 = 3u32
const TAILORED_MASK: u32 = 8u32
const TAILORED_DIACRITICS_MASK: u32 = 16u32
const REORDERING_MASK: u32 = 32u32
const LITHUANIAN_DOT_ABOVE_MASK: u32 = 64u32
const BACWARD_SECOND_LEVEL_MASK: u32 = 128u32
const ALTERNATE_SHIFTED_MASK: u32 = 256u32
const CASE_FIRST_MASK: u32 = 512u32
const UPPER_FIRST_MASK: u32 = 1_024u32
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) -> CaseFirst
Trait Implementations§
source§impl Clone for CollationMetadataV1
impl Clone for CollationMetadataV1
source§fn clone(&self) -> CollationMetadataV1
fn clone(&self) -> CollationMetadataV1
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 CollationMetadataV1
impl Debug for CollationMetadataV1
source§impl PartialEq for CollationMetadataV1
impl PartialEq for CollationMetadataV1
source§fn eq(&self, other: &CollationMetadataV1) -> bool
fn eq(&self, other: &CollationMetadataV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Yokeable<'a> for CollationMetadataV1where
Self: Sized,
impl<'a> Yokeable<'a> for CollationMetadataV1where
Self: Sized,
§type Output = CollationMetadataV1
type Output = CollationMetadataV1
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, CollationMetadataV1> for CollationMetadataV1
impl<'zf> ZeroFrom<'zf, CollationMetadataV1> for CollationMetadataV1
impl Copy for CollationMetadataV1
impl StructuralPartialEq for CollationMetadataV1
Auto Trait Implementations§
impl Freeze for CollationMetadataV1
impl RefUnwindSafe for CollationMetadataV1
impl Send for CollationMetadataV1
impl Sync for CollationMetadataV1
impl Unpin for CollationMetadataV1
impl UnwindSafe for CollationMetadataV1
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