[][src]Enum gluon_base::ast::PatternField

pub enum PatternField<'ast, Id> {
    Type {
        name: Spanned<Id, BytePos>,
    },
    Value {
        name: Spanned<Id, BytePos>,
        value: Option<SpannedPattern<'ast, Id>>,
    },
}

Variants

Type

Fields of Type

name: Spanned<Id, BytePos>
Value

Fields of Value

name: Spanned<Id, BytePos>value: Option<SpannedPattern<'ast, Id>>

Implementations

impl<Id, '_> PatternField<'_, Id>[src]

pub fn name(&self) -> &Spanned<Id, BytePos>[src]

Trait Implementations

impl<'ast, Id> AstAlloc<'ast, Id> for PatternField<'ast, Id>[src]

impl<'ast, Id> AstClone<'ast, Id> for PatternField<'ast, Id> where
    Id: AstClone<'ast, Id>,
    Id: Clone
[src]

impl<'ast, Id: Debug> Debug for PatternField<'ast, Id>[src]

impl<'ast, Id: Eq> Eq for PatternField<'ast, Id>[src]

impl<'ast, Id: PartialEq> PartialEq<PatternField<'ast, Id>> for PatternField<'ast, Id>[src]

impl<'ast, Id> StructuralEq for PatternField<'ast, Id>[src]

impl<'ast, Id> StructuralPartialEq for PatternField<'ast, Id>[src]

Auto Trait Implementations

impl<'ast, Id> RefUnwindSafe for PatternField<'ast, Id> where
    Id: RefUnwindSafe

impl<'ast, Id> Send for PatternField<'ast, Id> where
    Id: Send + Sync

impl<'ast, Id> Sync for PatternField<'ast, Id> where
    Id: Send + Sync

impl<'ast, Id> Unpin for PatternField<'ast, Id> where
    Id: Unpin

impl<'ast, Id> !UnwindSafe for PatternField<'ast, 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.