Enum plotly::common::ColorScale
source · 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) -> Self
fn from(src: ColorScalePalette) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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