pub enum CharClass {
Whitespace,
Numeric,
Delimiter,
Regular,
}Expand description
What a byte means to the tokenizer.
Variants§
Whitespace
Separates tokens and is otherwise ignored.
Numeric
Can appear in a number: 0–9, +, -, ..
Delimiter
Ends the current token and begins a new one: %()/<>[]{}.
Regular
Everything else — the body of keywords and names.
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