failable_parser

Macro failable_parser 

Source
macro_rules! failable_parser {
    ($parser:expr) => { ... };
}
Expand description

Declare a new failable parser.

The function has to take a &std::str. The return type must be a std::result::Result, though the inner types have no restriction, as long as the std::result::Result::Ok type matches the parameter type of the solving function.