[][src]Enum macro_railroad::parser::Matcher

pub enum Matcher {
    Punct(Punct),
    Ident(Ident),
    Lifetime(Lifetime),
    Literal(Literal),
    Group {
        delimiter: Delimiter,
        content: Vec<Matcher>,
    },
    Repeat {
        content: Vec<Matcher>,
        separator: Option<Separator>,
        repetition: Repetition,
    },
    Fragment {
        name: Ident,
        fragment: Fragment,
    },
}

Variants

Punct(Punct)
Ident(Ident)
Lifetime(Lifetime)
Literal(Literal)
Group

Fields of Group

delimiter: Delimitercontent: Vec<Matcher>
Repeat

Fields of Repeat

content: Vec<Matcher>separator: Option<Separator>repetition: Repetition
Fragment

Fields of Fragment

name: Identfragment: Fragment

Trait Implementations

impl Debug for Matcher[src]

impl From<Matcher> for Matcher[src]

impl Parse for Matcher[src]

Auto Trait Implementations

impl !RefUnwindSafe for Matcher

impl !Send for Matcher

impl !Sync for Matcher

impl Unpin for Matcher

impl UnwindSafe for Matcher

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, 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.