Skip to main content

items

Function items 

Source
pub fn items<T, K>(
    f: impl Fn() -> Vec<T> + 'static,
    key_of: impl Fn(&T) -> K + 'static,
) -> Items<T, K>
where T: Clone + 'static, K: Clone + Hash + 'static,
Expand description

Plain-data rows: an items closure plus a key function, as in list(items(model::ordered, |i: &Item| i.id), row_view).

Day API ↩ Guides· daybrite.dev