pub enum RampHint {
Sequential,
Diverging,
Banded,
Categorical {
items: Vec<CategoryItem>,
},
}Expand description
How a variable’s values are meaningfully mapped to a colour scale (spec §6.1).
The only presentation vocabulary this layer contributes, and it is a shape statement, never a colour: an application chooses palettes, band edges, and legend styling; the engine says only which shape is truthful for the data.
Variants§
Sequential
Magnitude on a continuous low→high scale.
Diverging
Signed values around a meaningful zero (e.g. flow direction).
Banded
Values classed into user-configurable threshold bands.
Categorical
A closed set of discrete states, with engine-authored items.
Fields
§
items: Vec<CategoryItem>Trait Implementations§
Source§impl<'de> Deserialize<'de> for RampHint
impl<'de> Deserialize<'de> for RampHint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RampHint
Auto Trait Implementations§
impl Freeze for RampHint
impl RefUnwindSafe for RampHint
impl Send for RampHint
impl Sync for RampHint
impl Unpin for RampHint
impl UnsafeUnpin for RampHint
impl UnwindSafe for RampHint
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