Function take_until
fn take_until<T, I, Error: ParseError<I>>(tag: T) -> impl Parser<I, Output = I, Error = Error>
where
I: Input + FindSubstring<T>,
T: Clone
Returns the input slice up to the first occurrence of the pattern.
It doesn't consume the pattern.
Streaming Specific
Streaming version will return a Err::Incomplete(Needed::new(N)) if the input doesn't
contain the pattern or if the input is smaller than the pattern.
Example
# use ;
use take_until;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;