pub enum Expr {
Path(ExprPath),
Lit(ExprLit),
Group(ExprGroup),
Binary(ExprBinary),
Unary(ExprUnary),
Call(ExprCall),
Match(ExprMatch),
Block(Block),
}Expand description
Expression in the bootstrap subset.
Variants§
Path(ExprPath)
Lit(ExprLit)
Group(ExprGroup)
Binary(ExprBinary)
Unary(ExprUnary)
Call(ExprCall)
Match(ExprMatch)
Block(Block)
Implementations§
Source§impl Expr
impl Expr
Sourcepub fn meta(&self) -> Option<&Meta>
pub fn meta(&self) -> Option<&Meta>
Returns metadata when the expression carries explicit Draxl metadata.
Sourcepub fn meta_mut(&mut self) -> Option<&mut Meta>
pub fn meta_mut(&mut self) -> Option<&mut Meta>
Returns mutable metadata when the expression carries explicit Draxl metadata.
Sourcepub fn clear_spans(&mut self)
pub fn clear_spans(&mut self)
Removes span data from the expression in place.
Trait Implementations§
impl Eq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin 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