pub enum SwatchKind {
Line,
Filled,
}Expand description
Describes the visual representation of a legend swatch.
Variants§
Line
A short horizontal line segment, typically used for line plots.
Filled
A small filled rectangle, typically used for bar charts, histograms, and fill-between areas.
Trait Implementations§
Source§impl Clone for SwatchKind
impl Clone for SwatchKind
Source§fn clone(&self) -> SwatchKind
fn clone(&self) -> SwatchKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SwatchKind
Source§impl Debug for SwatchKind
impl Debug for SwatchKind
impl Eq for SwatchKind
Source§impl PartialEq for SwatchKind
impl PartialEq for SwatchKind
Source§fn eq(&self, other: &SwatchKind) -> bool
fn eq(&self, other: &SwatchKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SwatchKind
Auto Trait Implementations§
impl Freeze for SwatchKind
impl RefUnwindSafe for SwatchKind
impl Send for SwatchKind
impl Sync for SwatchKind
impl Unpin for SwatchKind
impl UnsafeUnpin for SwatchKind
impl UnwindSafe for SwatchKind
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