Enum admerge::Skip[][src]

#[non_exhaustive]pub enum Skip<'a> {
    Bytes(usize),
    BytesOnce(usize),
    Lines(usize),
    LinesOnce(usize),
    Repeats(&'a [u8]),
    Until(&'a [u8]),
    Before(&'a [u8]),
}

Controls the skip behaviour when merging sources.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.

Trait Implementations

impl<'a> Clone for Skip<'a>[src]

impl<'a> Debug for Skip<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Skip<'a>

impl<'a> Send for Skip<'a>

impl<'a> Sync for Skip<'a>

impl<'a> Unpin for Skip<'a>

impl<'a> UnwindSafe for Skip<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.