#[repr(u8)]pub enum Char {
Show 22 variants
Zero = 48,
One = 49,
Two = 50,
Three = 51,
Four = 52,
Five = 53,
Six = 54,
Seven = 55,
Eight = 56,
Nine = 57,
LowerA = 97,
LowerB = 98,
LowerC = 99,
LowerD = 100,
LowerE = 101,
LowerF = 102,
UpperA = 65,
UpperB = 66,
UpperC = 67,
UpperD = 68,
UpperE = 69,
UpperF = 70,
}Expand description
A valid hex character: one of [0-9a-fA-F].
Variants§
Zero = 48
'0'
One = 49
'1'
Two = 50
'2'
Three = 51
'3'
Four = 52
'4'
Five = 53
'5'
Six = 54
'6'
Seven = 55
'7'
Eight = 56
'8'
Nine = 57
'9'
LowerA = 97
'a'
LowerB = 98
'b'
LowerC = 99
'c'
LowerD = 100
'd'
LowerE = 101
'e'
LowerF = 102
'f'
UpperA = 65
'A'
UpperB = 66
'B'
UpperC = 67
'C'
UpperD = 68
'D'
UpperE = 69
'E'
UpperF = 70
'F'
Implementations§
Source§impl Char
impl Char
Sourcepub fn slice_as_str(slice: &[Self]) -> &str
pub fn slice_as_str(slice: &[Self]) -> &str
Casts a slice of Chars to &str.
This conversion is zero-cost.
Sourcepub fn slice_as_bytes(slice: &[Self]) -> &[u8] ⓘ
pub fn slice_as_bytes(slice: &[Self]) -> &[u8] ⓘ
Casts a slice of Chars to &[u8].
This conversion is zero-cost.
Trait Implementations§
Source§impl Ord for Char
impl Ord for Char
1.21.0 (const: unstable) · 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 Char
impl PartialOrd for Char
impl Copy for Char
impl Eq for Char
impl StructuralPartialEq for Char
Auto Trait Implementations§
impl Freeze for Char
impl RefUnwindSafe for Char
impl Send for Char
impl Sync for Char
impl Unpin for Char
impl UnsafeUnpin for Char
impl UnwindSafe for Char
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