pub enum InterpMode {
Nearest,
Linear,
}Expand description
Interpolation mode for Graph::interpolate1d.
Variants§
Nearest
Nearest-neighbor (round to closest source sample).
Linear
Linear interpolation between the two neighboring source samples.
Trait Implementations§
Source§impl Clone for InterpMode
impl Clone for InterpMode
Source§fn clone(&self) -> InterpMode
fn clone(&self) -> InterpMode
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 InterpMode
Source§impl Debug for InterpMode
impl Debug for InterpMode
impl Eq for InterpMode
Source§impl PartialEq for InterpMode
impl PartialEq for InterpMode
Source§fn eq(&self, other: &InterpMode) -> bool
fn eq(&self, other: &InterpMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterpMode
Auto Trait Implementations§
impl Freeze for InterpMode
impl RefUnwindSafe for InterpMode
impl Send for InterpMode
impl Sync for InterpMode
impl Unpin for InterpMode
impl UnsafeUnpin for InterpMode
impl UnwindSafe for InterpMode
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