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§
Required Methods§
fn collect_view(self) -> Vec<Self::View>
fn collect_view(self) -> Vec<Self::View>
Collects the iterator into a list of views.