Function none_of
fn none_of<Input, Set, Error>(set: Set) -> impl Parser<Input, <Input as Stream>::Token, Error>
where
Input: StreamIsPartial + Stream,
<Input as Stream>::Token: Clone,
Set: ContainsToken<<Input as Stream>::Token>,
Error: ParserError<Input>
Recognize a token that does not match a [set of tokens][ContainsToken]
Complete version: Will return an error if there's not enough input data.
[Partial version][crate::_topic::partial]: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there's not enough input data.
Effective Signature
Assuming you are parsing a &str [Stream]:
# use *;;
# use ContainsToken;
# use ContextError;
#
Example
# use ;
# use *;
# use none_of;
assert_eq!;
assert!;
assert!;
# use ;
# use *;
# use Partial;
# use none_of;
assert_eq!;
assert!;
assert_eq!;