pub trait RenderItem {
// Required method
fn render(&self, area: Rect, frame: &mut Frame<'_>, selected: bool);
// Provided method
fn height(&self) -> u16 { ... }
}Expand description
Trait for items that can render themselves.
Implement this trait for item types that should render in a VirtualizedList.