FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    name

    name: String
    

    Source

    value

    value: f64
    

    Source

    children

    children: Option<Vec<TreemapNode>>
    

    Source

    new

    fn new(value: f64, name: impl Into<String>) -> Self
    

    A leaf of the given weight (TreemapNode(value, name)).

    Source

    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)).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.