Function panorama_imap::proto::parsers::satisfy[][src]

pub fn satisfy<F, I, E, T>(f: F) -> impl Fn(I) -> IResult<I, T, E> where
    I: ShitNeededForParsing<Item = T, Sliced = I>,
    F: Fn(T) -> bool,
    E: ParseError<I>,
    T: Copy
Expand description

Same as nom’s satisfy, but operates on Bytes instead of &str.