pub enum NumberType {
Float,
Hex,
Binary,
Octal,
Seq,
}Expand description
Represents the types of numeric tokens recognized by the tokenizer
Variants§
Float
Floating-point numbers (e.g., 3.14, .25)
Hex
Hexadecimal numbers (e.g., 0x1A3F)
Binary
Binary numbers (e.g., 0b1010)
Octal
Octal numbers (e.g., 0o755)
Seq
Sequential integers (e.g., 12345)
Trait Implementations§
Source§impl Clone for NumberType
impl Clone for NumberType
Source§fn clone(&self) -> NumberType
fn clone(&self) -> NumberType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumberType
impl Debug for NumberType
Source§impl PartialEq for NumberType
impl PartialEq for NumberType
impl Copy for NumberType
impl Eq for NumberType
impl StructuralPartialEq for NumberType
Auto Trait Implementations§
impl Freeze for NumberType
impl RefUnwindSafe for NumberType
impl Send for NumberType
impl Sync for NumberType
impl Unpin for NumberType
impl UnwindSafe for NumberType
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