pub fn consumed<'a, O, E>(
p: impl Pipe<&'a str, O, E>,
) -> impl Pipe<&'a str, (&'a str,), E>Expand description
Returns the consumed input instead of the pipe result
assert_eq!(
consumed(tag::<Error, _, _>("foo").and(tag("bar"))).apply("foobarbaz"),
Ok(("baz", ("foobar",)))
);