pub enum LitKind {
Null,
Bool(bool),
Int(i64),
Float(f64),
Str(String),
}Expand description
Kind of literal.
Variants§
Null
“null”
Bool(bool)
“true”, “false”
Int(i64)
“12”, “0o100”, “0b110”
Float(f64)
“12.34”, “0b100.100”
Str(String)
““abc”“, ““abc”
Trait Implementations§
Source§impl PartialOrd for LitKind
impl PartialOrd for LitKind
impl StructuralPartialEq for LitKind
Auto Trait Implementations§
impl Freeze for LitKind
impl RefUnwindSafe for LitKind
impl Send for LitKind
impl Sync for LitKind
impl Unpin for LitKind
impl UnwindSafe for LitKind
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