pub struct Slice {
pub label: String,
pub value: f64,
pub style: Option<String>,
}Expand description
One slice of a PieChart.
Fields§
§label: StringIts name in the legend.
value: f64Its share of the whole, against the other slices’ values. A value that is not a finite number above zero takes no part of the disc.
style: Option<String>A theme key or style definition, instead of chart.series.N.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Slice
Auto Trait Implementations§
impl Freeze for Slice
impl RefUnwindSafe for Slice
impl Send for Slice
impl Sync for Slice
impl Unpin for Slice
impl UnsafeUnpin for Slice
impl UnwindSafe for Slice
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