Function take_while_m_n
fn take_while_m_n<F, I, Error: ParseError<I>>(m: usize, n: usize, cond: F) -> impl FnMut(I) -> crate::internal::IResult<I, I, Error>
where
I: Input,
F: Fn(<I as Input>::Item) -> bool
Returns the longest (m <= len <= n) input slice that matches the predicate.
The parser will return the longest slice that matches the given predicate (a function that takes the input and returns a bool).
It will return an Err::Error((_, ErrorKind::TakeWhileMN)) if the pattern wasn't met or is out
of range (m <= len <= n).
Example
# use ;
use take_while_m_n;
use AsChar;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;