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 Ord for CharCase
impl Ord for CharCase
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CharCase
impl PartialOrd for CharCase
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
Mutably borrows from an owned value. Read more