[−][src]Enum gluon_base::ast::Pattern
Variants
As(Spanned<Id, BytePos>, &'ast mut SpannedPattern<'ast, Id>)
An as-pattern, eg. option @ { monoid, functor }
Constructor(TypedIdent<Id>, &'ast mut [SpannedPattern<'ast, Id>])
Constructor pattern, eg. Cons x xs
Ident(TypedIdent<Id>)
Ident pattern, eg: x
Record pattern, eg. { x, y = foo }
Fields of Record
typ: ArcType<Id>
fields: &'ast mut [PatternField<'ast, Id>]
implicit_import: Option<Spanned<Id, BytePos>>
Tuple pattern, eg: (x, y)
Fields of Tuple
typ: ArcType<Id>
elems: &'ast mut [SpannedPattern<'ast, Id>]
Literal(Literal)
A literal pattern
An invalid pattern
Trait Implementations
impl<'ast, Id> AstClone<'ast, Id> for Pattern<'ast, Id> where
Id: AstClone<'ast, Id>,
Id: Clone,
[src]
Id: AstClone<'ast, Id>,
Id: Clone,
impl<'ast, Id: Debug> Debug for Pattern<'ast, Id>
[src]
impl<Id, '_> Default for Pattern<'_, Id>
[src]
impl<'ast, Id: Eq> Eq for Pattern<'ast, Id>
[src]
impl<'ast, Id: PartialEq> PartialEq<Pattern<'ast, Id>> for Pattern<'ast, Id>
[src]
fn eq(&self, other: &Pattern<'ast, Id>) -> bool
[src]
fn ne(&self, other: &Pattern<'ast, Id>) -> bool
[src]
impl<'ast, Id> StructuralEq for Pattern<'ast, Id>
[src]
impl<'ast, Id> StructuralPartialEq for Pattern<'ast, Id>
[src]
impl<'_> Typed for Pattern<'_, Symbol>
[src]
Auto Trait Implementations
impl<'ast, Id> RefUnwindSafe for Pattern<'ast, Id> where
Id: RefUnwindSafe,
Id: RefUnwindSafe,
impl<'ast, Id> Send for Pattern<'ast, Id> where
Id: Send + Sync,
Id: Send + Sync,
impl<'ast, Id> Sync for Pattern<'ast, Id> where
Id: Send + Sync,
Id: Send + Sync,
impl<'ast, Id> Unpin for Pattern<'ast, Id> where
Id: Unpin,
Id: Unpin,
impl<'ast, Id> !UnwindSafe for Pattern<'ast, Id>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Id> AsId<Id> for Id where
Id: ?Sized,
[src]
Id: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,