pub struct Nearest1D<G> { /* private fields */ }Expand description
Nearest-value piecewise-constant interpolation. In the event of a tie, the left value is taken.
Implementations§
Trait Implementations§
Source§impl<'a, T, G> Interp1D<'a, T, G> for Nearest1D<G>
impl<'a, T, G> Interp1D<'a, T, G> for Nearest1D<G>
Auto Trait Implementations§
impl<G> Freeze for Nearest1D<G>where
G: Freeze,
impl<G> RefUnwindSafe for Nearest1D<G>where
G: RefUnwindSafe,
impl<G> Send for Nearest1D<G>where
G: Send,
impl<G> Sync for Nearest1D<G>where
G: Sync,
impl<G> Unpin for Nearest1D<G>where
G: Unpin,
impl<G> UnwindSafe for Nearest1D<G>where
G: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more