Trait CollectArray

Source
pub trait CollectArray<T> {
    // Required method
    fn carr<const N: usize>(&mut self) -> [T; N];
}
Expand description

Collect an iterator into a array.

Required Methods§

Source

fn carr<const N: usize>(&mut self) -> [T; N]

Collect an iterator into a array.

§Panics

if the array isn’t big enough.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, I: Iterator<Item = T>> CollectArray<T> for I