pub struct StmtExpr {
pub meta: Meta,
pub expr: Expr,
pub has_semi: bool,
}Expand description
Expression statement.
Fields§
§meta: MetaDraxl metadata for the statement node.
expr: ExprExpression carried by the statement.
has_semi: boolWhether the statement ends with a semicolon.
Implementations§
Source§impl StmtExpr
impl StmtExpr
Sourcepub fn clear_spans(&mut self)
pub fn clear_spans(&mut self)
Removes span data from the statement in place.
Trait Implementations§
impl Eq for StmtExpr
impl StructuralPartialEq for StmtExpr
Auto Trait Implementations§
impl Freeze for StmtExpr
impl RefUnwindSafe for StmtExpr
impl Send for StmtExpr
impl Sync for StmtExpr
impl Unpin for StmtExpr
impl UnsafeUnpin for StmtExpr
impl UnwindSafe for StmtExpr
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