Skip to main content

Build

Trait Build 

Source
pub trait Build<T> {
    // Required method
    fn row(&self, index: usize, item: &T) -> Row;

    // Provided method
    fn selectable(&self, index: usize, item: &T) -> bool { ... }
}

Required Methods§

Source

fn row(&self, index: usize, item: &T) -> Row

Provided Methods§

Source

fn selectable(&self, index: usize, item: &T) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T, F: Fn(usize, &T) -> Row> Build<T> for F