pub enum Normalization {
Linear {
min: f64,
max: f64,
},
Symmetric {
center: f64,
half: f64,
},
}Expand description
Maps a data value onto the [0, 1] input of a GradientColorMap.
Variants§
Linear
Linear map: min -> 0, max -> 1.
Symmetric
Symmetric (diverging) map centered on center: center -> 0.5, and
center ± half -> 0 / 1. Ideal for values around zero.
Implementations§
Trait Implementations§
Source§impl Clone for Normalization
impl Clone for Normalization
Source§fn clone(&self) -> Normalization
fn clone(&self) -> Normalization
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 Normalization
Source§impl Debug for Normalization
impl Debug for Normalization
Source§impl PartialEq for Normalization
impl PartialEq for Normalization
impl StructuralPartialEq for Normalization
Auto Trait Implementations§
impl Freeze for Normalization
impl RefUnwindSafe for Normalization
impl Send for Normalization
impl Sync for Normalization
impl Unpin for Normalization
impl UnsafeUnpin for Normalization
impl UnwindSafe for Normalization
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