Enum CharCase

enum CharCase

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

Lowercase. Corresponds to the Lowercase Unicode property.

Title

Titlecase. Corresponds to the Titlecase_Letter Unicode general category.

Upper

Uppercase. Corresponds to the Uppercase Unicode property.

Implementations

impl Clone for CharCase

fn clone(self: &Self) -> CharCase

impl Copy for CharCase

impl Debug for CharCase

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

impl Eq for CharCase

impl Freeze for CharCase

impl Hash for CharCase

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl Ord for CharCase

fn cmp(self: &Self, other: &CharCase) -> Ordering

impl PartialEq for CharCase

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

impl PartialOrd for CharCase

fn partial_cmp(self: &Self, other: &CharCase) -> Option<Ordering>

impl RefUnwindSafe for CharCase

impl Send for CharCase

impl StructuralPartialEq for CharCase

impl Sync for CharCase

impl Unpin for CharCase

impl UnsafeUnpin for CharCase

impl UnwindSafe for CharCase

impl<T> Any for CharCase

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for CharCase

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for CharCase

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

impl<T> CloneToUninit for CharCase

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for CharCase

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for CharCase

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for CharCase

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

impl<T, U> TryInto for CharCase

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