Trait CollectView

pub trait CollectView {
    type View: IntoView;

    // Required method
    fn collect_view(self) -> Vec<Self::View>;
}
Expand description

Collects some iterator of views into a list, so they can be rendered.

This is a shorthand for .collect::<Vec<_>>(), and allows any iterator of renderable items to be collected into a renderable collection.

Required Associated Types§

type View: IntoView

The inner view type.

Required Methods§

fn collect_view(self) -> Vec<Self::View>

Collects the iterator into a list of views.

Implementors§

§

impl<It, V> CollectView for It
where It: IntoIterator<Item = V>, V: IntoView,

§

type View = V