pub struct Literal {
pub token: Token,
pub value: LiteralType,
}Expand description
Represents a literal expression in the AST. It consists of a token and a specific literal value (e.g., integer, string).
Fields§
§token: TokenThe token representing the literal in the source code.
value: LiteralTypeThe value of the literal.
Implementations§
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 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