pub enum Literal {
Symbol(String),
String(String),
Double(f64),
Integer(i64),
BigInteger(String),
Array(Vec<Literal>),
}
Expand description
Represents a literal.
Exemple:
#foo "symbol literal"
'hello' "string literal"
3.14 "double literal"
42 "integer literal"
Variants§
Symbol(String)
Represents a symbol literal (eg. #foo
).
String(String)
Represents a string literal (eg. 'hello'
).
Double(f64)
Represents a decimal number literal (eg. 3.14
).
Integer(i64)
Represents a integer number literal (eg. 42
).
BigInteger(String)
Represents a big integer (bigger than a 64-bit signed integer can represent).
Array(Vec<Literal>)
Represents an array literal (eg. $(1 2 3)
)
Trait Implementations§
source§impl PartialEq for Literal
impl PartialEq for Literal
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 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