Function combine::none_of [] [src]

pub fn none_of<T, I>(tokens: T) -> NoneOf<T, I> where T: Clone + IntoIterator, I: Stream, I::Item: PartialEq<T::Item>

Extract one token and succeeds if it is part of tokens.

let result = many(none_of("abc".chars()))
    .parse("edc");
assert_eq!(result, Ok((String::from("ed"), "c")));