Skip to main content

TreeCellRenderer

Trait TreeCellRenderer 

Source
pub trait TreeCellRenderer<T: TreeModel> {
    // Required method
    fn cell<'a>(
        &'a self,
        model: &'a T,
        id: T::Id,
        context: &TreeRowContext<'_>,
    ) -> Cell<'a>;
}
Expand description

Renders an additional cell with full row context.

Required Methods§

Source

fn cell<'a>( &'a self, model: &'a T, id: T::Id, context: &TreeRowContext<'_>, ) -> Cell<'a>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, F> TreeCellRenderer<T> for F
where T: TreeModel, F: for<'a> Fn(&'a T, T::Id, &TreeRowContext<'_>) -> Cell<'a>,