pub struct LocExpr(pub Rc<Expr>, pub Option<ExprLocation>);Expand description
Holds AST expression and its location in source file
Tuple Fields§
§0: Rc<Expr>§1: Option<ExprLocation>Trait Implementations§
Source§impl Trace for LocExpr
Safety:
AST is acyclic, and there should be no gc pointers
impl Trace for LocExpr
Safety: AST is acyclic, and there should be no gc pointers
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl StructuralPartialEq for LocExpr
Auto Trait Implementations§
impl Freeze for LocExpr
impl RefUnwindSafe for LocExpr
impl !Send for LocExpr
impl !Sync for LocExpr
impl Unpin for LocExpr
impl UnwindSafe for LocExpr
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