#[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]>),
}
Expand description
Configures where padding will be filled when merging sources.
Variants (Non-exhaustive)§
This enum is marked as 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.
Custom(Option<&'a [u8]>, Option<&'a [u8]>, Option<&'a [u8]>)
Fills the given paddings before the first source, between sources and after the last source.
The argument order is (Before, Between, After).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Pad<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more