pub enum AstLiteral {
Int(Spanned<TokenInt>),
Float(Spanned<f64>),
String(Spanned<String>),
ByteString(Spanned<Vec<u8>>),
Ellipsis,
}Variants§
Int(Spanned<TokenInt>)
Float(Spanned<f64>)
String(Spanned<String>)
ByteString(Spanned<Vec<u8>>)
Ellipsis
Trait Implementations§
Source§impl Clone for AstLiteral
impl Clone for AstLiteral
Source§fn clone(&self) -> AstLiteral
fn clone(&self) -> AstLiteral
Returns a duplicate 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 moreSource§impl Debug for AstLiteral
impl Debug for AstLiteral
Auto Trait Implementations§
impl Freeze for AstLiteral
impl RefUnwindSafe for AstLiteral
impl Send for AstLiteral
impl Sync for AstLiteral
impl Unpin for AstLiteral
impl UnwindSafe for AstLiteral
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