pub enum InterpolationMethod {
Constant,
Linear,
}
Expand description
The method used for interpolating between two points
Variants§
Constant
Use the nearest value to the left of the sample point. If there is no key point to the left of the sample, use the nearest point on the right instead.
Linear
Linearly interpolate between the two stops to the left and right of the sample. If the sample is outside the range of the stops, use the value of the single nearest stop.
Trait Implementations§
Source§impl Clone for InterpolationMethod
impl Clone for InterpolationMethod
Source§fn clone(&self) -> InterpolationMethod
fn clone(&self) -> InterpolationMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterpolationMethod
impl Debug for InterpolationMethod
Source§impl Display for InterpolationMethod
impl Display for InterpolationMethod
Source§impl PartialEq for InterpolationMethod
impl PartialEq for InterpolationMethod
impl Copy for InterpolationMethod
impl StructuralPartialEq for InterpolationMethod
Auto Trait Implementations§
impl Freeze for InterpolationMethod
impl RefUnwindSafe for InterpolationMethod
impl Send for InterpolationMethod
impl Sync for InterpolationMethod
impl Unpin for InterpolationMethod
impl UnwindSafe for InterpolationMethod
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