pub struct ChartDatum<T> {
pub category: T,
pub value: f32,
pub color: Option<ColorProp>,
}Expand description
One numeric data point at a category/x-axis position, with an optional per-point color that overrides the series color (bar charts only).
Fields§
§category: T§value: f32§color: Option<ColorProp>Implementations§
Source§impl<T> ChartDatum<T>
impl<T> ChartDatum<T>
Trait Implementations§
Source§impl<T: Clone> Clone for ChartDatum<T>
impl<T: Clone> Clone for ChartDatum<T>
Source§fn clone(&self) -> ChartDatum<T>
fn clone(&self) -> ChartDatum<T>
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 moreAuto Trait Implementations§
impl<T> !RefUnwindSafe for ChartDatum<T>
impl<T> !Send for ChartDatum<T>
impl<T> !Sync for ChartDatum<T>
impl<T> !UnwindSafe for ChartDatum<T>
impl<T> Freeze for ChartDatum<T>where
T: Freeze,
impl<T> Unpin for ChartDatum<T>where
T: Unpin,
impl<T> UnsafeUnpin for ChartDatum<T>where
T: UnsafeUnpin,
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