pub fn with_offset<'a, O: PushBack<usize>, E>(
p: impl Pipe<&'a str, O, E>,
) -> impl Pipe<&'a str, O::Output, E>Expand description
Get the consumed offset in bytes in addition to the output of the given Pipe
assert_eq!(
with_offset(tag::<Error, _, _>("foo").and(tag("bar"))).apply("foobarbaz"),
Ok(("baz", ("foo", "bar", 6)))
);