[−][src]Function nom::multi::many_till
pub fn many_till<I, O, P, E, F, G>(
f: F,
g: G
) -> impl Fn(I) -> IResult<I, (Vec<O>, P), E> where
I: Clone + PartialEq,
F: Fn(I) -> IResult<I, O, E>,
G: Fn(I) -> IResult<I, P, E>,
E: ParseError<I>,
Applies the parser f
until the parser g
produces
a result. Returns a pair consisting of the results of
f
in a Vec
and the result of g
.
many_till!(I -> IResult<I,O>, I -> IResult<I,P>) => I -> IResult<I, (Vec<O>, P)>