#[non_exhaustive]#[repr(u32)]pub enum InterpolationMode {
Undefined = 0,
Nearest = 1,
Linear = 2,
Cubic = 4,
CubicBspline = 5,
CubicCatmullRom = 6,
CubicB05C03 = 7,
Super = 8,
Lanczos = 16,
Lanczos3Advanced = 17,
SmoothEdge = 134_217_728,
}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.
Undefined = 0
Nearest = 1
Linear = 2
Cubic = 4
CubicBspline = 5
CubicCatmullRom = 6
CubicB05C03 = 7
Super = 8
Lanczos = 16
Lanczos3Advanced = 17
SmoothEdge = 134_217_728
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterpolationMode
Source§impl Debug for InterpolationMode
impl Debug for InterpolationMode
Source§impl Display for InterpolationMode
impl Display for InterpolationMode
impl Eq for InterpolationMode
Source§impl From<InterpolationMode> for u32
impl From<InterpolationMode> for u32
Source§fn from(enum_value: InterpolationMode) -> Self
fn from(enum_value: InterpolationMode) -> Self
Converts to this type from the input type.
Source§impl From<InterpolationMode> for NppiInterpolationMode
impl From<InterpolationMode> for NppiInterpolationMode
Source§fn from(value: InterpolationMode) -> Self
fn from(value: InterpolationMode) -> Self
Converts to this type from the input type.
Source§impl From<InterpolationMode> for i32
impl From<InterpolationMode> for i32
Source§fn from(value: InterpolationMode) -> Self
fn from(value: InterpolationMode) -> Self
Converts to this type from the input type.
Source§impl From<NppiInterpolationMode> for InterpolationMode
impl From<NppiInterpolationMode> for InterpolationMode
Source§fn from(value: NppiInterpolationMode) -> Self
fn from(value: NppiInterpolationMode) -> Self
Converts to this type from the input type.
Source§impl Hash for InterpolationMode
impl Hash for InterpolationMode
Source§impl PartialEq for InterpolationMode
impl PartialEq for InterpolationMode
Source§fn eq(&self, other: &InterpolationMode) -> bool
fn eq(&self, other: &InterpolationMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterpolationMode
Source§impl TryFrom<u32> for InterpolationMode
impl TryFrom<u32> for InterpolationMode
Source§type Error = TryFromPrimitiveError<InterpolationMode>
type Error = TryFromPrimitiveError<InterpolationMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for InterpolationMode
impl TryFromPrimitive for InterpolationMode
const NAME: &'static str = "InterpolationMode"
type Primitive = u32
type Error = TryFromPrimitiveError<InterpolationMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
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