pub enum ExtrapolateType {
Extend,
Clamp,
Identity,
Wrap,
}Expand description
How to handle values outside the input range.
Variants§
Extend
Extend the linear mapping beyond the range (default).
Clamp
Clamp to the nearest output value.
Identity
Return the input unchanged when out of range.
Wrap
Wrap around (modular arithmetic on the input range).
Trait Implementations§
Source§impl Clone for ExtrapolateType
impl Clone for ExtrapolateType
impl Copy for ExtrapolateType
Source§impl Debug for ExtrapolateType
impl Debug for ExtrapolateType
Source§impl Default for ExtrapolateType
impl Default for ExtrapolateType
impl Eq for ExtrapolateType
Source§impl PartialEq for ExtrapolateType
impl PartialEq for ExtrapolateType
impl StructuralPartialEq for ExtrapolateType
Auto Trait Implementations§
impl Freeze for ExtrapolateType
impl RefUnwindSafe for ExtrapolateType
impl Send for ExtrapolateType
impl Sync for ExtrapolateType
impl Unpin for ExtrapolateType
impl UnsafeUnpin for ExtrapolateType
impl UnwindSafe for ExtrapolateType
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