Zip

Trait Zip 

Source
pub trait Zip<T, const N: usize> {
    // Required method
    fn zip<U>(self, with: [U; N]) -> [(T, U); N];
}
Expand description

Zip arrays together.

Required Methods§

Source

fn zip<U>(self, with: [U; N]) -> [(T, U); N]

Zip arrays together.

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.

Implementations on Foreign Types§

Source§

impl<T, const N: usize> Zip<T, N> for [T; N]

Source§

fn zip<U>(self, with: [U; N]) -> [(T, U); N]

Implementors§