[][src]Struct gluon_base::ast::OwnedExpr

pub struct OwnedExpr<Id: 'static> { /* fields omitted */ }

Implementations

impl<Id> OwnedExpr<Id>[src]

pub fn with_arena<R>(
    &mut self,
    f: impl for<'ast> FnOnce(OwnedArena<'ast, Id>, &'ast mut SpannedExpr<'ast, Id>) -> R
) -> R
[src]

pub fn expr(&self) -> &SpannedExpr<'_, Id>[src]

pub fn expr_mut(&mut self) -> &mut SpannedExpr<'_, Id>[src]

pub fn arena_expr(&mut self) -> (OwnedArena<'_, Id>, &mut SpannedExpr<'_, Id>)[src]

Trait Implementations

impl<Id: Debug> Debug for OwnedExpr<Id>[src]

impl<Id: 'static> Default for OwnedExpr<Id>[src]

impl<Id: Eq> Eq for OwnedExpr<Id>[src]

impl<Id: PartialEq> PartialEq<OwnedExpr<Id>> for OwnedExpr<Id>[src]

impl<Id> Send for OwnedExpr<Id> where
    Id: Send,
    SpannedExpr<'static, Id>: Send
[src]

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> where
    Id: Sync,
    SpannedExpr<'static, Id>: Sync
[src]

impl Typed for OwnedExpr<Symbol>[src]

type Ident = Symbol

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Id> AsId<Id> for Id where
    Id: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.