pub enum CharCase {
Lower = 0,
Title = 2,
Upper = 3,
}🔬This is a nightly-only experimental API. (
titlecase #153892)Expand description
The case of a cased character,
as returned by char::case.
Titlecase characters conceptually are composed of an uppercase portion followed by a lowercase portion. The variant discriminants represent this: the most significant bit represents whether the case conceptually starts as uppercase, while the least significant bit represents whether it conceptually ends as uppercase.
Variants§
Lower = 0
🔬This is a nightly-only experimental API. (
titlecase #153892)Lowercase. Corresponds to the Lowercase Unicode property.
Title = 2
🔬This is a nightly-only experimental API. (
titlecase #153892)Titlecase. Corresponds to the Titlecase_Letter Unicode general category.
Upper = 3
🔬This is a nightly-only experimental API. (
titlecase #153892)Uppercase. Corresponds to the Uppercase Unicode property.
Trait Implementations§
Source§impl Clone for CharCase
impl Clone for CharCase
Source§fn clone(&self) -> CharCase
fn clone(&self) -> CharCase
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)where
Self:,
fn clone_from(&mut self, source: &Self)where
Self:,
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Performs copy-assignment from
source. Read moreSource§impl Hash for CharCase
impl Hash for CharCase
Source§impl Ord for CharCase
impl Ord for CharCase
Source§fn cmp(&self, other: &CharCase) -> Ordering
fn cmp(&self, other: &CharCase) -> Ordering
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CharCase
impl PartialEq for CharCase
Source§impl PartialOrd for CharCase
impl PartialOrd for CharCase
Source§fn partial_cmp(&self, other: &CharCase) -> Option<Ordering>
fn partial_cmp(&self, other: &CharCase) -> Option<Ordering>
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.0.0 · Source§fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
1.0.0 · Source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
impl Copy for CharCase
impl Eq for CharCase
impl StructuralPartialEq for CharCase
Auto Trait Implementations§
impl Freeze for CharCase
impl RefUnwindSafe for CharCase
impl Send for CharCase
impl Sync for CharCase
impl Unpin for CharCase
impl UnsafeUnpin for CharCase
impl UnwindSafe for CharCase
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
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Mutably borrows from an owned value. Read more