#[repr(i32)]pub enum InterpolationMode {
kNEAREST = 0,
kLINEAR = 1,
kCUBIC = 2,
}Expand description
! \enum InterpolationMode ! ! \brief Enumerates various modes of interpolation ! !
Variants§
kNEAREST = 0
!< ND (0 < N <= 8) nearest neighbor resizing.
kLINEAR = 1
!< Supports linear (1D), bilinear (2D), and trilinear (3D) interpolation
kCUBIC = 2
!< Supports bicubic (2D) interpolation
Trait Implementations§
Source§impl Clone for InterpolationMode
impl Clone for InterpolationMode
Source§fn clone(&self) -> InterpolationMode
fn clone(&self) -> InterpolationMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterpolationMode
impl Debug for InterpolationMode
Source§impl From<InterpolationMode> for InterpolationMode
impl From<InterpolationMode> for InterpolationMode
Source§fn from(value: InterpolationMode) -> Self
fn from(value: InterpolationMode) -> Self
Converts to this type from the input type.
Source§impl Hash for InterpolationMode
impl Hash for InterpolationMode
Source§impl Into<InterpolationMode> for InterpolationMode
impl Into<InterpolationMode> for InterpolationMode
Source§fn into(self) -> InterpolationMode
fn into(self) -> InterpolationMode
Converts this type into the (usually inferred) input type.
Source§impl Ord for InterpolationMode
impl Ord for InterpolationMode
Source§fn cmp(&self, other: &InterpolationMode) -> Ordering
fn cmp(&self, other: &InterpolationMode) -> Ordering
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 PartialEq for InterpolationMode
impl PartialEq for InterpolationMode
Source§impl PartialOrd for InterpolationMode
impl PartialOrd for InterpolationMode
impl Copy for InterpolationMode
impl Eq for InterpolationMode
impl StructuralPartialEq for InterpolationMode
Auto Trait Implementations§
impl Freeze for InterpolationMode
impl RefUnwindSafe for InterpolationMode
impl Send for InterpolationMode
impl Sync for InterpolationMode
impl Unpin for InterpolationMode
impl UnsafeUnpin for InterpolationMode
impl UnwindSafe for InterpolationMode
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