Type Alias gluon_base::ast::SpannedPattern

source ·
pub type SpannedPattern<'ast, Id> = Spanned<Pattern<'ast, Id>, BytePos>;
Expand description

Pattern which contains a location

Aliased Type§

struct SpannedPattern<'ast, Id> {
    pub span: Span<ByteIndex>,
    pub value: Pattern<'ast, Id>,
}

Fields§

§span: Span<ByteIndex>§value: Pattern<'ast, Id>

Trait Implementations§

source§

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

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]