Struct gluon_base::ast::RootExpr
source · pub struct RootExpr<Id: 'static> { /* private fields */ }
Implementations§
source§impl<Id> RootExpr<Id>
impl<Id> RootExpr<Id>
pub fn new<'ast>( arena: Arc<Arena<'ast, Id>>, expr: &'ast mut SpannedExpr<'ast, Id> ) -> Self
pub fn with_arena<R>( &mut self, f: impl for<'ast> FnOnce(&'ast Arena<'ast, Id>, &'ast mut SpannedExpr<'ast, Id>) -> R ) -> R
pub fn expr(&self) -> &SpannedExpr<'_, Id>
pub fn expr_mut(&mut self) -> &mut SpannedExpr<'_, Id>
pub fn arena_expr(&mut self) -> (&Arena<'_, Id>, &mut SpannedExpr<'_, Id>)
pub fn try_into_send(self) -> Result<OwnedExpr<Id>, Self>
Trait Implementations§
source§impl<Id: PartialEq> PartialEq for RootExpr<Id>
impl<Id: PartialEq> PartialEq for RootExpr<Id>
impl<Id: Eq> Eq for RootExpr<Id>
Auto Trait Implementations§
impl<Id> !RefUnwindSafe for RootExpr<Id>
impl<Id> !Send for RootExpr<Id>
impl<Id> !Sync for RootExpr<Id>
impl<Id> Unpin for RootExpr<Id>
impl<Id> !UnwindSafe for RootExpr<Id>
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