combine::parser::error

Function expected

source
pub fn expected<Input, P, S>(p: P, info: S) -> Expected<P, S>
where P: Parser<Input>, Input: Stream, S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,
Expand description

Equivalent to p.expected(info).