#[non_exhaustive]pub enum Skip<'a> {
Bytes(usize),
BytesOnce(usize),
Lines(usize),
LinesOnce(usize),
Repeats(&'a [u8]),
Until(&'a [u8]),
Before(&'a [u8]),
}
Expand description
Controls the skip behaviour when merging sources.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Bytes(usize)
Skip a number of bytes from each part.
BytesOnce(usize)
Keep the contents of the first part untouched (or the last part if passed by skip_tail
),
but skip a given number of bytes from the rest parts.
Lines(usize)
Skip a number of lines from each part.
LinesOnce(usize)
Keep the contents of the first part untouched (or the last part if passed by skip_tail
),
but skip a given number of lines from the rest parts.
Repeats(&'a [u8])
Skip every byte sequence that matches a given byte pattern from each part. The given byte pattern must match the first few bytes.
Until(&'a [u8])
Skip a sequence of bytes until reaching a given byte pattern from each part. The given byte pattern will be skipped.
Before(&'a [u8])
Skip a sequence of bytes until reaching a given byte pattern from each part. The given byte pattern will not be skipped.