[−][src]Struct gluon_base::ast::RootExpr
Implementations
impl<Id> RootExpr<Id>
[src]
pub fn new<'ast>(
arena: Arc<Arena<'ast, Id>>,
expr: &'ast mut SpannedExpr<'ast, Id>
) -> Self
[src]
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
[src]
&mut self,
f: impl for<'ast> FnOnce(&'ast Arena<'ast, Id>, &'ast mut SpannedExpr<'ast, Id>) -> R
) -> R
pub fn expr(&self) -> &SpannedExpr<'_, Id>
[src]
pub fn expr_mut(&mut self) -> &mut SpannedExpr<'_, Id>
[src]
pub fn arena_expr(&mut self) -> (&Arena<'_, Id>, &mut SpannedExpr<'_, Id>)
[src]
pub fn try_into_send(self) -> Result<OwnedExpr<Id>, Self>
[src]
Trait Implementations
impl<Id: Debug> Debug for RootExpr<Id>
[src]
impl<Id: 'static> Default for RootExpr<Id>
[src]
impl<Id: Eq> Eq for RootExpr<Id>
[src]
impl<Id: PartialEq> PartialEq<RootExpr<Id>> for RootExpr<Id>
[src]
impl Typed for RootExpr<Symbol>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Id> AsId<Id> for Id where
Id: ?Sized,
[src]
Id: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,