pub enum GeneratedPalette {
Hue(HuePalette),
Viridis {
option: char,
begin: f64,
end: f64,
direction: i32,
},
}Expand description
A discrete palette generated for the number of levels.
Variants§
Hue(HuePalette)
Viridis
scale_colour_viridis_d(): n colours sampled from a viridis map
(option ‘A’ magma, ‘B’ inferno, ‘C’ plasma, ‘D’ viridis, ‘E’
cividis, ‘F’ rocket, ‘G’ mako, ‘H’ turbo) between
begin and end, reversed with direction = -1.
Implementations§
Trait Implementations§
Source§impl Clone for GeneratedPalette
impl Clone for GeneratedPalette
Source§impl Debug for GeneratedPalette
impl Debug for GeneratedPalette
Source§impl PartialEq for GeneratedPalette
impl PartialEq for GeneratedPalette
impl StructuralPartialEq for GeneratedPalette
Auto Trait Implementations§
impl Freeze for GeneratedPalette
impl RefUnwindSafe for GeneratedPalette
impl Send for GeneratedPalette
impl Sync for GeneratedPalette
impl Unpin for GeneratedPalette
impl UnsafeUnpin for GeneratedPalette
impl UnwindSafe for GeneratedPalette
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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