Enum vega_lite_4::LegendType
source · pub enum LegendType {
Gradient,
Symbol,
}
Expand description
The type of the legend. Use "symbol"
to create a discrete legend and "gradient"
for a
continuous color gradient.
Default value: "gradient"
for non-binned quantitative fields and temporal fields;
"symbol"
otherwise.
Variants§
Trait Implementations§
source§impl Clone for LegendType
impl Clone for LegendType
source§fn clone(&self) -> LegendType
fn clone(&self) -> LegendType
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 LegendType
impl Debug for LegendType
source§impl<'de> Deserialize<'de> for LegendType
impl<'de> Deserialize<'de> for LegendType
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
Auto Trait Implementations§
impl RefUnwindSafe for LegendType
impl Send for LegendType
impl Sync for LegendType
impl Unpin for LegendType
impl UnwindSafe for LegendType
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