Function pear::parsers::peek_slice_if
source · pub fn peek_slice_if<I, F>(
input: &mut Pear<I>,
len: usize,
cond: F
) -> Result<(), I>where
I: Input,
F: FnMut(&I::Slice) -> bool,Expand description
Succeeds if the current slice is slice.