pub struct InterpolatorNearest<T: Float> { /* private fields */ }Expand description
Nearest-neighbour interpolator
Implementations§
Source§impl<T: Float> InterpolatorNearest<T>
impl<T: Float> InterpolatorNearest<T>
Sourcepub const INPUT_LENGTH: usize = 1
pub const INPUT_LENGTH: usize = 1
The number of input samples required
Sourcepub fn fractional<D>(&self, data: &D, _fractional: T) -> T
pub fn fractional<D>(&self, data: &D, _fractional: T) -> T
Interpolate a fractional sample
Trait Implementations§
Source§impl<T: Float> InterpolatorTrait<T> for InterpolatorNearest<T>
impl<T: Float> InterpolatorTrait<T> for InterpolatorNearest<T>
Auto Trait Implementations§
impl<T> Freeze for InterpolatorNearest<T>
impl<T> RefUnwindSafe for InterpolatorNearest<T>where
T: RefUnwindSafe,
impl<T> Send for InterpolatorNearest<T>where
T: Send,
impl<T> Sync for InterpolatorNearest<T>where
T: Sync,
impl<T> Unpin for InterpolatorNearest<T>where
T: Unpin,
impl<T> UnwindSafe for InterpolatorNearest<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