pub enum PadMode {
Constant = 0,
Replicate = 1,
Reflect = 2,
Circular = 3,
}Expand description
Border contract for pad.
Constant fills padded elements with fill; the remaining modes source
padded elements from the input border. The numeric discriminants are the
kernel push-constant mode values.
Variants§
Constant = 0
Fill padded elements with a constant value.
Replicate = 1
Clamp each padded coordinate to the nearest edge element.
Reflect = 2
Mirror the border without repeating the edge element.
Circular = 3
Wrap padded coordinates around the axis extent.
Trait Implementations§
impl Copy for PadMode
impl Eq for PadMode
impl StructuralPartialEq for PadMode
Auto Trait Implementations§
impl Forget for PadMode
impl Freeze for PadMode
impl Move for PadMode
impl RefUnwindSafe for PadMode
impl Send for PadMode
impl Sync for PadMode
impl Unpin for PadMode
impl UnsafeUnpin for PadMode
impl UnwindSafe for PadMode
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