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> { ... }
}

Required Associated Types§

Required Methods§

source

fn query(&self, node: N) -> Self::Index

source

fn children(&self, node: N) -> Self::Children

Provided Methods§

source

fn dimensions(&self, node: N) -> Rectangle<f64>

source

fn border(&self, node: N) -> Rectangle<f64>

Implementors§