Function kparse::combinators::fsense
source · pub fn fsense<I, FN, Error: ParseError<I>>(
c_fn: FN
) -> impl Fn(I) -> IResult<I, I, Error>where
I: Slice<Range<usize>> + InputIter + Clone,
<I as InputIter>::Item: AsChar,
FN: Fn(char) -> bool,
Expand description
Same as nom::char but return the input type instead of the char. Checks one character but doesn’t consume it.