pub enum Mark {
Line(LineMark),
Scatter(ScatterMark),
}Expand description
Variants§
Implementations§
Source§impl Mark
impl Mark
Sourcepub fn series(&self) -> &SeriesHandle
pub fn series(&self) -> &SeriesHandle
The series this mark reads from.
Sourcepub fn explicit_color(&self) -> Option<Color>
pub fn explicit_color(&self) -> Option<Color>
The mark’s explicit colour, if set.
Sourcepub fn color_at(&self, i: usize) -> Color
pub fn color_at(&self, i: usize) -> Color
The mark’s resolved colour: its explicit colour, or the palette colour
for series index i. Shared by the data layer, legend, and cursor so
a series is one colour everywhere.
Sourcepub fn display_label(&self, i: usize) -> String
pub fn display_label(&self, i: usize) -> String
The mark’s display name: its explicit label, or "Series {i+1}".
Trait Implementations§
Source§impl From<ScatterMark> for Mark
impl From<ScatterMark> for Mark
Source§fn from(m: ScatterMark) -> Self
fn from(m: ScatterMark) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnsafeUnpin for Mark
impl UnwindSafe for Mark
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.