#[non_exhaustive]pub enum InterpolateMode {
Bilinear2d,
Nearest2d,
Bicubic2d,
Trilinear3d,
Linear1d,
Area2d,
}Expand description
Interpolation mode for InterpolatePlan. Only Self::Bilinear2d
is wired today; the other variants return Unsupported.
#[non_exhaustive] — additional interpolation modes (cubic
spline, lanczos, mitchell-netravali, …) may land in future
vision-domain phases. Match arms must include a _ => catch-all.
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.
Bilinear2d
2-D bilinear interpolation. Trailblazer.
Nearest2d
2-D nearest-neighbor — reserved.
Bicubic2d
2-D bicubic — reserved.
Trilinear3d
3-D trilinear — reserved.
Linear1d
1-D linear — reserved.
Area2d
2-D area (adaptive average) — reserved.
Trait Implementations§
Source§impl Clone for InterpolateMode
impl Clone for InterpolateMode
Source§fn clone(&self) -> InterpolateMode
fn clone(&self) -> InterpolateMode
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 InterpolateMode
Source§impl Debug for InterpolateMode
impl Debug for InterpolateMode
impl Eq for InterpolateMode
Source§impl Hash for InterpolateMode
impl Hash for InterpolateMode
Source§impl PartialEq for InterpolateMode
impl PartialEq for InterpolateMode
Source§fn eq(&self, other: &InterpolateMode) -> bool
fn eq(&self, other: &InterpolateMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterpolateMode
Auto Trait Implementations§
impl Freeze for InterpolateMode
impl RefUnwindSafe for InterpolateMode
impl Send for InterpolateMode
impl Sync for InterpolateMode
impl Unpin for InterpolateMode
impl UnsafeUnpin for InterpolateMode
impl UnwindSafe for InterpolateMode
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