#[repr(C)]pub enum PadMode<T = f64> {
Constant(T),
Edge,
Maximum,
Mean,
Median,
Minimum,
Mode,
Reflect,
Symmetric,
Wrap,
}
Variants§
Implementations§
Source§impl<T> PadMode<T>
impl<T> PadMode<T>
Sourcepub const fn is_constant(&self) -> bool
pub const fn is_constant(&self) -> bool
Returns true if the enum is PadMode::Constant otherwise false
Sourcepub const fn is_maximum(&self) -> bool
pub const fn is_maximum(&self) -> bool
Returns true if the enum is PadMode::Maximum otherwise false
Sourcepub const fn is_median(&self) -> bool
pub const fn is_median(&self) -> bool
Returns true if the enum is PadMode::Median otherwise false
Sourcepub const fn is_minimum(&self) -> bool
pub const fn is_minimum(&self) -> bool
Returns true if the enum is PadMode::Minimum otherwise false
Sourcepub const fn is_reflect(&self) -> bool
pub const fn is_reflect(&self) -> bool
Returns true if the enum is PadMode::Reflect otherwise false
Sourcepub const fn is_symmetric(&self) -> bool
pub const fn is_symmetric(&self) -> bool
Returns true if the enum is PadMode::Symmetric otherwise false
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for PadMode<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PadMode<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Ord> Ord for PadMode<T>
impl<T: Ord> Ord for PadMode<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for PadMode<T>
impl<T: PartialOrd> PartialOrd for PadMode<T>
Source§impl<T> VariantNames for PadMode<T>
impl<T> VariantNames for PadMode<T>
impl<T: Copy> Copy for PadMode<T>
impl<T: Eq> Eq for PadMode<T>
impl<T> StructuralPartialEq for PadMode<T>
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>where
T: Send,
impl<T> Sync for PadMode<T>where
T: Sync,
impl<T> Unpin for PadMode<T>where
T: Unpin,
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