Skip to main content

new

Function new 

Source
pub fn new(
    items: Vec<Box<dyn Item + Send + Sync>>,
    delegate: Box<dyn ItemDelegate + Send + Sync>,
    width: usize,
    height: usize,
) -> Model
Expand description

New returns a new model with sensible defaults.