Function pear::parsers::take_n_if[][src]

pub fn take_n_if<I: Input, F>(
    input: &mut I,
    num: usize,
    condition: F
) -> Result<I::Many, I> where
    F: FnMut(I::Token) -> bool
Expand description

Take exactly num inputs, ensuring condition holds.