pub enum CharCase {
Lower = 0,
Title = 2,
Upper = 3,
}🔬This is a nightly-only experimental API. (
titlecase)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)Lowercase. Corresponds to the Lowercase Unicode property.
Title = 2
🔬This is a nightly-only experimental API. (
titlecase)Titlecase. Corresponds to the Titlecase_Letter Unicode general category.
Upper = 3
🔬This is a nightly-only experimental API. (
titlecase)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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more