pub struct LineData<'a, C: Clone> {
pub label: Cow<'a, str>,
pub line: Cow<'a, [C]>,
pub style: Style,
pub color: [u8; 3],
pub filled: bool,
}Available on crate feature
plot only.Expand description
Drawing options of a line series.
Fieldsยง
ยงlabel: Cow<'a, str>Label of the line
line: Cow<'a, [C]>Line data
style: StyleLine style
color: [u8; 3]Line color
filled: boolWhether the line is filled
Trait Implementationsยง
sourceยงimpl<'de, 'a, C> Deserialize<'de> for LineData<'a, C>where
LineData<'a, C>: Default,
C: Deserialize<'de> + Clone,
impl<'de, 'a, C> Deserialize<'de> for LineData<'a, C>where LineData<'a, C>: Default, C: Deserialize<'de> + Clone,
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<'a, C> RefUnwindSafe for LineData<'a, C>where C: RefUnwindSafe,
impl<'a, C> Send for LineData<'a, C>where C: Send + Sync,
impl<'a, C> Sync for LineData<'a, C>where C: Sync,
impl<'a, C> Unpin for LineData<'a, C>where C: Unpin,
impl<'a, C> UnwindSafe for LineData<'a, C>where C: UnwindSafe + RefUnwindSafe,
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<T> Pointable for T
impl<T> Pointable for T
ยงimpl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
ยง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 moreยง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).ยง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.ยงfn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.