Macro futures_await_synom::named [] [src]

macro_rules! named {
    ($name:ident -> $o:ty, $submac:ident!( $($args:tt)* )) => { ... };
    (pub $name:ident -> $o:ty, $submac:ident!( $($args:tt)* )) => { ... };
    ($name:ident($($params:tt)*) -> $o:ty, $submac:ident!( $($args:tt)* )) => { ... };
    (pub $name:ident($($params:tt)*) -> $o:ty, $submac:ident!( $($args:tt)* )) => { ... };
}

Define a function from a parser combination.

  • Syntax: named!(NAME -> TYPE, PARSER) or named!(pub NAME -> TYPE, PARSER)
// One or more Rust types separated by commas.
named!(pub comma_separated_types -> Delimited<Ty, Comma>,
    call!(Delimited::parse_separated_nonempty)
);