Struct id_tree_layout::embedder::PlacedTreeItem[][src]

pub struct PlacedTreeItem {
    pub y_order: usize,
    pub x_center: usize,
    pub x_extent: usize,
    pub x_extent_children: usize,
    pub text: String,
    pub is_emphasized: bool,
    pub parent: Option<usize>,
    pub ord: usize,
}

The PlacedTreeItem is the embedding information for one single tree node. It is used only in a collection type Embedding. External API: keep stable.

Fields

y_order: usize

The nodes level, root has level 0. Can be used to calculate an y coordinate for the node

x_center: usize

The logical x coordinate of the node’s center

x_extent: usize

The x-extent of the nodes text representation in logical coordinate units

x_extent_children: usize

The maximum extent over the nodes text representation and the sum of all children’s x-extent

text: String

The text representation of the nodes data - created by the Visualize trait’s implementation

is_emphasized: bool

The emphasize property obtained from the Visualize trait

parent: Option<usize>

The parent’s ord, if there is one

ord: usize

A unique number reflecting the topological post-ordering of the nodes in the tree

Trait Implementations

impl Clone for PlacedTreeItem[src]

impl Debug for PlacedTreeItem[src]

impl Default for PlacedTreeItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.