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 Clone for PlacedTreeItem
[src]fn clone(&self) -> PlacedTreeItem
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for PlacedTreeItem
[src]
impl Default for PlacedTreeItem
[src]fn default() -> PlacedTreeItem
[src]
Auto Trait Implementations
impl RefUnwindSafe for PlacedTreeItem
impl RefUnwindSafe for PlacedTreeItem
impl Send for PlacedTreeItem
impl Send for PlacedTreeItem
impl Sync for PlacedTreeItem
impl Sync for PlacedTreeItem
impl Unpin for PlacedTreeItem
impl Unpin for PlacedTreeItem
impl UnwindSafe for PlacedTreeItem
impl UnwindSafe for PlacedTreeItem