Function kparse::combinators::psense

source ·
pub fn psense<I, Error: ParseError<I>>(
    cc: char
) -> impl Fn(I) -> IResult<I, I, Error>where
    I: Slice<Range<usize>> + InputIter + Clone,
    <I as InputIter>::Item: AsChar,
Expand description

Same as nom::char but return the input type instead of the char. Checks one character but doesn’t consume it.