pub enum Literal {
String(String),
Integer(i64),
Float(f64),
Boolean(bool),
Null,
}Expand description
A literal value in an expression.
Variants§
String(String)
String literal (single or double quoted)
Integer(i64)
Integer literal
Float(f64)
Floating-point literal
Boolean(bool)
Boolean literal
Null
Null literal
Trait Implementations§
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnsafeUnpin for Literal
impl UnwindSafe for Literal
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