pub enum CharClass {
Digit,
HexDigit,
Alpha,
AlphaNumeric,
Whitespace,
IdentStart,
IdentCont,
}Expand description
Built-in character classes
Variants§
Digit
Decimal digit: 0-9
HexDigit
Hexadecimal digit: 0-9, a-f, A-F
Alpha
Alphabetic: a-z, A-Z
AlphaNumeric
Alphanumeric: a-z, A-Z, 0-9
Whitespace
Whitespace: space, tab, newline, carriage return
IdentStart
Identifier start: a-z, A-Z, _, $
IdentCont
Identifier continue: a-z, A-Z, 0-9, _, $
Implementations§
Trait Implementations§
impl Copy for CharClass
impl Eq for CharClass
impl StructuralPartialEq for CharClass
Auto Trait Implementations§
impl Freeze for CharClass
impl RefUnwindSafe for CharClass
impl Send for CharClass
impl Sync for CharClass
impl Unpin for CharClass
impl UnsafeUnpin for CharClass
impl UnwindSafe for CharClass
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