Enum passerine::compiler::ast::ArgPat[][src]

pub enum ArgPat {
    Keyword(String),
    Symbol(String),
    Group(Vec<Spanned<ArgPat>>),
}

Represents an argument pattern, i.e. the mini language used to match macros.

Variants

Keyword(String)
Symbol(String)
Group(Vec<Spanned<ArgPat>>)

Trait Implementations

impl Clone for ArgPat[src]

impl Debug for ArgPat[src]

impl PartialEq<ArgPat> for ArgPat[src]

impl StructuralPartialEq for ArgPat[src]

impl TryFrom<AST> for ArgPat[src]

type Error = String

The type returned in the event of a conversion error.

fn try_from(ast: AST) -> Result<Self, Self::Error>[src]

Like ASTPatterns, ArgPats are represented as ASTs, Then converted into ArgPats when the compiler determines it so.

Auto Trait Implementations

impl !RefUnwindSafe for ArgPat

impl !Send for ArgPat

impl !Sync for ArgPat

impl Unpin for ArgPat

impl UnwindSafe for ArgPat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.