pub struct TreemapItem {
pub label: String,
pub value: f64,
pub color: Color,
}Expand description
A single item in a treemap.
Fields§
§label: StringDisplay label.
value: f64Numeric value determining area.
color: ColorFill color for this item’s rectangle.
Implementations§
Trait Implementations§
Source§impl Clone for TreemapItem
impl Clone for TreemapItem
Source§fn clone(&self) -> TreemapItem
fn clone(&self) -> TreemapItem
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 moreAuto Trait Implementations§
impl Freeze for TreemapItem
impl RefUnwindSafe for TreemapItem
impl Send for TreemapItem
impl Sync for TreemapItem
impl Unpin for TreemapItem
impl UnsafeUnpin for TreemapItem
impl UnwindSafe for TreemapItem
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