Trait taffy::tree::traits::PrintTree

source ·
pub trait PrintTree: TraverseTree {
    // Required methods
    fn get_debug_label(&self, node_id: NodeId) -> &'static str;
    fn get_final_layout(&self, node_id: NodeId) -> &Layout;
}
Expand description

Trait used by the print_tree method which prints a debug representation

As indicated by it’s dependence on TraverseTree, it required full recursive access to the tree.

Required Methods§

source

fn get_debug_label(&self, node_id: NodeId) -> &'static str

Get a debug label for the node (typically the type of node: flexbox, grid, text, image, etc)

source

fn get_final_layout(&self, node_id: NodeId) -> &Layout

Get a reference to the node’s final layout

Object Safety§

This trait is not object safe.

Implementors§