pub enum PadMode {
Constant,
Reflect,
Replicate,
}Expand description
Fill mode for Op::Pad. Only PadMode::Constant is
implemented in the v1 cut; the other variants are accepted at
the IR level so the enum is forward-stable, but the executor
returns a clean error until they ship.
Variants§
Constant
Fill padded slots with the constant value parameter on
the Op::Pad variant.
Reflect
Reflect input around the padded edges (without repeating the edge value). Not yet implemented.
Replicate
Repeat the edge value into the padded region. Not yet implemented.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.