pub enum LiteralKind {
Int,
Float,
String(String),
Bool,
EnumVariant(EnumVariantLiteral),
Tuple(Vec<Expression>),
Slice(Vec<Expression>),
SlicePair(Vec<(Expression, Expression)>),
None,
}
Variants§
Int
Float
String(String)
Bool
EnumVariant(EnumVariantLiteral)
Tuple(Vec<Expression>)
Slice(Vec<Expression>)
SlicePair(Vec<(Expression, Expression)>)
None
Trait Implementations§
Source§impl Clone for LiteralKind
impl Clone for LiteralKind
Source§fn clone(&self) -> LiteralKind
fn clone(&self) -> LiteralKind
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for LiteralKind
impl RefUnwindSafe for LiteralKind
impl Send for LiteralKind
impl Sync for LiteralKind
impl Unpin 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