pub struct Expr {
pub attrs: Attrs,
pub value: Value,
}Expand description
An expression with metadata.
This is the fundamental building block of the AST. Every expression carries attributes (position, scope, type) and a value that determines what kind of expression it is.
Fields§
§attrs: AttrsMetadata about this expression
value: ValueThe value/kind of this expression
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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