Enum gluon_base::ast::Pattern [] [src]

pub enum Pattern<Id> {
    Constructor(TypedIdent<Id>, Vec<TypedIdent<Id>>),
    Record {
        typ: ArcType<Id>,
        types: Vec<(Id, Option<Id>)>,
        fields: Vec<(Id, Option<Id>)>,
    },
    Ident(TypedIdent<Id>),
}

Variants

Fields

Trait Implementations

impl<Id: Clone> Clone for Pattern<Id>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Formats the value using the given formatter.

impl Typed for Pattern<Symbol>
[src]