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
Constructor(TypedIdent<Id>, Vec<TypedIdent<Id>>)
Record
Fields
typ: ArcType<Id> | |
types: Vec<(Id, Option<Id>)> | |
fields: Vec<(Id, Option<Id>)> |
Ident(TypedIdent<Id>)
Trait Implementations
impl<Id: Clone> Clone for Pattern<Id>
[src]
fn clone(&self) -> Pattern<Id>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Id: PartialEq> PartialEq for Pattern<Id>
[src]
fn eq(&self, __arg_0: &Pattern<Id>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Pattern<Id>) -> bool
This method tests for !=
.