Trait gluon_base::ast::AstAlloc

source ·
pub trait AstAlloc<'ast, Id>: Sized {
    // Required methods
    fn alloc(self, arena: &'ast Arena<'ast, Id>) -> &'ast mut Self;
    fn alloc_extend(
        iter: impl IntoIterator<Item = Self>,
        arena: &'ast Arena<'ast, Id>
    ) -> &'ast mut [Self];
}

Required Methods§

source

fn alloc(self, arena: &'ast Arena<'ast, Id>) -> &'ast mut Self

source

fn alloc_extend( iter: impl IntoIterator<Item = Self>, arena: &'ast Arena<'ast, Id> ) -> &'ast mut [Self]

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'ast, Id> AstAlloc<'ast, Id> for PatternField<'ast, Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for Metadata

source§

impl<'ast, Id> AstAlloc<'ast, Id> for Field<Spanned<Id, BytePos>, Alias<Id, AstType<'ast, Id>>>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for Field<Spanned<Id, BytePos>, AstType<'ast, Id>>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for Generic<Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for Alternative<'ast, Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for Argument<SpannedIdent<Id>>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for AstType<'ast, Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for Do<'ast, Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for ExprField<'ast, Id, ArcType<Id>>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for ExprField<'ast, Id, SpannedExpr<'ast, Id>>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for InnerAstType<'ast, Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for TypeBinding<'ast, Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for ValueBinding<'ast, Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for SpannedExpr<'ast, Id>

source§

impl<'ast, Id> AstAlloc<'ast, Id> for SpannedPattern<'ast, Id>