pub struct Bar {
pub label: String,
pub value: f64,
pub color: Option<Color>,
}Expand description
A single bar in a styled bar chart.
Fields§
§label: StringDisplay label for this bar.
value: f64Numeric value.
color: Option<Color>Bar color. If None, uses theme.primary.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bar
impl RefUnwindSafe for Bar
impl Send for Bar
impl Sync for Bar
impl Unpin for Bar
impl UnsafeUnpin for Bar
impl UnwindSafe for Bar
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