#[non_exhaustive]#[repr(u16)]pub enum PadMode {
Constant = 0,
Reflect = 1,
Replicate = 2,
Circular = 3,
}Expand description
Padding mode for crate::ops::ShapeLayoutKind::Pad.
Today only Self::Constant is wired in the Phase 3 trailblazer.
Reflect / Replicate / Circular follow in fanout sessions — each
changes the kernel body’s “what value goes in the pad region”
branch but keeps the same plan shape.
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.
Constant = 0
Pad with a constant value (PadDescriptor::value).
Reflect = 1
Reflect input across the boundary (no edge duplication).
Replicate = 2
Replicate the boundary value into the pad region.
Circular = 3
Wrap-around padding (also called “circular”).
Trait Implementations§
impl Copy for PadMode
impl Eq for PadMode
impl StructuralPartialEq for PadMode
Auto Trait Implementations§
impl Freeze 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