TreeColumns

Trait TreeColumns 

Source
pub trait TreeColumns<T: TreeModel> {
    // Required methods
    fn label_constraint(&self) -> Constraint;
    fn other_constraints(&self) -> &[Constraint];
    fn cells<'a>(&'a self, model: &'a T, id: T::Id) -> SmallVec<[Cell<'a>; 8]>;

    // Provided methods
    fn header(&self) -> Option<Row<'_>> { ... }
    fn constraints_for_area(&self, _area: Rect) -> SmallVec<[Constraint; 8]> { ... }
}

Required Methods§

Source

fn label_constraint(&self) -> Constraint

Source

fn other_constraints(&self) -> &[Constraint]

Source

fn cells<'a>(&'a self, model: &'a T, id: T::Id) -> SmallVec<[Cell<'a>; 8]>

Provided Methods§

Source

fn header(&self) -> Option<Row<'_>>

Source

fn constraints_for_area(&self, _area: Rect) -> SmallVec<[Constraint; 8]>

Implementors§

Source§

impl<const N: usize, T: TreeModel> TreeColumns<T> for AdaptiveColumns<N, T>

Source§

impl<const N: usize, T: TreeModel> TreeColumns<T> for SimpleColumns<N, T>