Struct icu_casemap::provider::data::CaseMapData

source ยท
pub struct CaseMapData {
    pub ignoreable: bool,
    pub kind: CaseMapDataKind,
}
Expand description

Case mapping data associated with a single code point

๐Ÿšง 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ยง

ยงignoreable: bool

Whether this is default-ignoreable

ยงkind: CaseMapDataKind

The rest of the case mapping data

Implementationsยง

sourceยง

impl CaseMapData

source

pub(crate) fn case_type(&self) -> Option<CaseType>

source

pub(crate) fn is_upper_or_title(&self) -> bool

source

pub(crate) fn is_relevant_to(&self, kind: MappingKind) -> bool

source

pub(crate) fn is_ignorable(&self) -> bool

source

pub(crate) fn has_exception(&self) -> bool

source

pub(crate) fn is_sensitive(&self) -> bool

source

pub(crate) fn dot_type(&self) -> DotType

source

pub(crate) fn delta(&self) -> i16

source

pub(crate) fn exception_index(&self) -> u16

Trait Implementationsยง

sourceยง

impl AsULE for CaseMapData

sourceยง

type ULE = CaseMapDataULE

The ULE type corresponding to Self. Read more
sourceยง

fn from_unaligned(ule: Self::ULE) -> Self

Converts from Self::ULE to Self. Read more
sourceยง

fn to_unaligned(self) -> Self::ULE

Converts from Self to Self::ULE. Read more
sourceยง

impl Clone for CaseMapData

sourceยง

fn clone(&self) -> CaseMapData

Returns a copy of the value. Read more
1.0.0 ยท sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
sourceยง

impl Debug for CaseMapData

sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
sourceยง

impl PartialEq for CaseMapData

sourceยง

fn eq(&self, other: &CaseMapData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
sourceยง

impl TrieValue for CaseMapData

sourceยง

type TryFromU32Error = TryFromIntError

Last-resort fallback value to return if we cannot read data from the trie. Read more
sourceยง

fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>

A parsing function that is primarily motivated by deserialization contexts. When the serialization type width is smaller than 32 bits, then it is expected that the call site will widen the value to a u32 first.
sourceยง

fn to_u32(self) -> u32

A method for converting back to a u32 that can roundtrip through Self::try_from_u32(). The default implementation of this trait method panics in debug mode and returns 0 in release mode. Read more
sourceยง

impl Copy for CaseMapData

sourceยง

impl Eq for CaseMapData

sourceยง

impl StructuralPartialEq for CaseMapData

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> CloneToUninit for T
where T: Clone,

sourceยง

unsafe fn clone_to_uninit(&self, dst: *mut T)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T> ToOwned for T
where T: Clone,

sourceยง

type Owned = T

The resulting type after obtaining ownership.
sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
sourceยง

impl<T> ErasedDestructor for T
where T: 'static,

sourceยง

impl<T> MaybeSendSync for T