[−][src]Function combine::parser::range::take_fn
pub fn take_fn<F, I>(searcher: F) -> TakeFn<F, I> where
F: FnMut(I::Range) -> Option<usize>,
I: FullRangeStream,
I::Range: Range,
Searches the entire range using searcher and then consumes a range of Some(n).
If f can not find anything in the range it must return None which indicates an end of input error.
See take_until_bytes for a usecase.