Function take_until
fn take_until<T, I, Error: ParseError<I>>(tag: T) -> impl FnMut(I) -> crate::internal::IResult<I, I, Error>
where
I: Input + FindSubstring<T>,
T: Input + Clone
Returns the input slice up to the first occurrence of the pattern.
It doesn't consume the pattern. It will return Err(Err::Error((_, ErrorKind::TakeUntil)))
if the pattern wasn't met.
Example
# use ;
use take_until;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;