Trait tree_layout::NodeInfo
source · pub trait NodeInfo<N>where
Self::Index: Eq + Hash,
N: Copy,{
type Index;
type Children: IntoIterator<Item = N>;
// Required methods
fn query(&self, node: N) -> Self::Index;
fn children(&self, node: N) -> Self::Children;
// Provided methods
fn dimensions(&self, node: N) -> Rectangle<f64> { ... }
fn border(&self, node: N) -> Rectangle<f64> { ... }
}