Struct gluon_base::ast::OwnedExpr
source · pub struct OwnedExpr<Id: 'static> { /* private fields */ }
Implementations§
source§impl<Id> OwnedExpr<Id>
impl<Id> OwnedExpr<Id>
pub fn with_arena<R>( &mut self, f: impl for<'ast> FnOnce(OwnedArena<'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) -> (OwnedArena<'_, Id>, &mut SpannedExpr<'_, Id>)
Trait Implementations§
source§impl<Id: PartialEq> PartialEq for OwnedExpr<Id>
impl<Id: PartialEq> PartialEq for OwnedExpr<Id>
impl<Id: Eq> Eq for OwnedExpr<Id>
impl<Id> Send for OwnedExpr<Id>
Since the Arena
is no longer accessible it if self
is the only owner of
the arena we can implement Send
and Sync
impl<Id> Sync for OwnedExpr<Id>
Auto Trait Implementations§
impl<Id> !RefUnwindSafe for OwnedExpr<Id>
impl<Id> Unpin for OwnedExpr<Id>where
Id: Unpin,
impl<Id> !UnwindSafe for OwnedExpr<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