Skip to main content

option_bool_parser

Function option_bool_parser 

Source
fn option_bool_parser<'a>(input: &mut Input<'a>) -> PResult<'a, bool>
Expand description

Recognizes the ! boolean operator in option names.

This parser does not fully consume its input. It also expects the package name to be there, if the ! does not exist.

§Format

The parser expects a ! or either one of ASCII alphanumeric character, hyphen, dot, or underscore.

§Errors

If the input string does not match the expected format, an error will be returned.