Trait grafix_toolbox::lib::CollectVec

source ·
pub trait CollectVec<T>: Sized + Iterator<Item = T> {
    // Provided methods
    fn collect_vec(self) -> Vec<T> { ... }
    fn collect_box(self) -> Box<[T]> { ... }
    fn collect_arr<const N: usize>(self) -> [T; N] { ... }
}

Provided Methods§

source

fn collect_vec(self) -> Vec<T>

source

fn collect_box(self) -> Box<[T]>

source

fn collect_arr<const N: usize>(self) -> [T; N]

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<V: Sized + Iterator<Item = T>, T> CollectVec<T> for V