Enum admerge::Pad[][src]

#[non_exhaustive]pub enum Pad<'a> {
    Before(&'a [u8]),
    Between(&'a [u8]),
    After(&'a [u8]),
    Custom(Option<&'a [u8]>, Option<&'a [u8]>, Option<&'a [u8]>),
}

Configures where padding will be filled 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.
Before(&'a [u8])

Fills the given padding before the first source.

Between(&'a [u8])

Fills the given padding between two sources.

After(&'a [u8])

Fills the given padding after the last source.

Fills the given paddings before the first source, between sources and after the last source.

The argument order is (Before, Between, After).

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Pad<'a>

impl<'a> Send for Pad<'a>

impl<'a> Sync for Pad<'a>

impl<'a> Unpin for Pad<'a>

impl<'a> UnwindSafe for Pad<'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.