pub enum ColorScale {
Palette(ColorScalePalette),
Vector(Vec<ColorScaleElement>),
}Variants§
Palette(ColorScalePalette)
Vector(Vec<ColorScaleElement>)
Trait Implementations§
Source§impl Clone for ColorScale
impl Clone for ColorScale
Source§fn clone(&self) -> ColorScale
fn clone(&self) -> ColorScale
Returns a copy 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 ColorScale
impl Debug for ColorScale
Source§impl From<ColorScalePalette> for ColorScale
impl From<ColorScalePalette> for ColorScale
Source§fn from(src: ColorScalePalette) -> ColorScale
fn from(src: ColorScalePalette) -> ColorScale
Converts to this type from the input type.
Source§impl Serialize for ColorScale
impl Serialize for ColorScale
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ColorScale
impl RefUnwindSafe for ColorScale
impl Send for ColorScale
impl Sync for ColorScale
impl Unpin for ColorScale
impl UnwindSafe for ColorScale
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