TreemapNode
struct · ferroui-livecharts · v0.5.0
struct TreemapNode
A node of a treemap (Defaults/TreemapNode). A leaf carries its weight in value; an internal
node either carries an explicit nonzero value or rolls its children up. children is None
for a leaf; Some of an empty list is an internal node without children, which has no hover
area and no label, as in the source.
Members
name
name: String
value
value: f64
children
children: Option<Vec<TreemapNode>>
new
fn new(value: f64, name: impl Into<String>) -> Self
A leaf of the given weight (TreemapNode(value, name)).
with_children
fn with_children(name: impl Into<String>, children: Vec<TreemapNode>) -> Self
An internal node whose weight is the sum of its children (TreemapNode(name, children)).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.