Skip to main content

bind

Macro bind 

Source
macro_rules! bind {
    ($f:expr, $($p:expr),* $(,)?) => { ... };
}
Expand description

Variadic version of combinators::bind, where all provided parsers must succeed.

ยงArguments

  • f - the transformation function. Its arguments must match the result types of p... in both type and number.
  • p... - any number of parsers.