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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.