pub enum PadMode<T: Element> {
Constant(T),
Edge,
Reflect,
Symmetric,
Wrap,
}Expand description
Padding mode for pad.
Variants§
Constant(T)
Pad with a constant value.
Edge
Pad with the edge values of the array.
Reflect
Pad with the reflection of the array mirrored on the first and last values (does not repeat the edge).
Symmetric
Pad with the reflection of the array mirrored along the edge.
Wrap
Pad by wrapping the array around.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for PadMode<T>where
T: Freeze,
impl<T> RefUnwindSafe for PadMode<T>where
T: RefUnwindSafe,
impl<T> Send for PadMode<T>
impl<T> Sync for PadMode<T>
impl<T> Unpin for PadMode<T>where
T: Unpin,
impl<T> UnsafeUnpin for PadMode<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PadMode<T>where
T: UnwindSafe,
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