pub struct ChartDataPoint {
pub label: String,
pub value: f64,
}Expand description
A data point for chart elements.
Fields§
§label: StringLabel for this data point (x-axis or slice label).
value: f64Numeric value for this data point.
Trait Implementations§
Source§impl Clone for ChartDataPoint
impl Clone for ChartDataPoint
Source§fn clone(&self) -> ChartDataPoint
fn clone(&self) -> ChartDataPoint
Returns a duplicate 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 ChartDataPoint
impl Debug for ChartDataPoint
Source§impl<'de> Deserialize<'de> for ChartDataPoint
impl<'de> Deserialize<'de> for ChartDataPoint
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
Source§impl PartialEq for ChartDataPoint
impl PartialEq for ChartDataPoint
Source§impl Serialize for ChartDataPoint
impl Serialize for ChartDataPoint
impl StructuralPartialEq for ChartDataPoint
Auto Trait Implementations§
impl Freeze for ChartDataPoint
impl RefUnwindSafe for ChartDataPoint
impl Send for ChartDataPoint
impl Sync for ChartDataPoint
impl Unpin for ChartDataPoint
impl UnsafeUnpin for ChartDataPoint
impl UnwindSafe for ChartDataPoint
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