pub enum LiteralKind {
Integer,
Float,
String,
Char,
Bool,
}Expand description
Category of a literal token, used by literal-normalization strategies.
Variants§
Integer
Integer literal, e.g. 42, 0xff, 1_000.
Float
Floating-point literal, e.g. 1.5, 2e10.
String
String literal, including raw and byte strings.
Char
Character or byte-character literal.
Bool
Boolean literal (true / false).
Trait Implementations§
Source§impl Clone for LiteralKind
impl Clone for LiteralKind
impl Copy for LiteralKind
Source§impl Debug for LiteralKind
impl Debug for LiteralKind
impl Eq for LiteralKind
Source§impl PartialEq for LiteralKind
impl PartialEq for LiteralKind
impl StructuralPartialEq for LiteralKind
Auto Trait Implementations§
impl Freeze for LiteralKind
impl RefUnwindSafe for LiteralKind
impl Send for LiteralKind
impl Sync for LiteralKind
impl Unpin for LiteralKind
impl UnsafeUnpin for LiteralKind
impl UnwindSafe for LiteralKind
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