Trait array_ext::sized::Array10 [] [src]

pub trait Array10<T>: Array<T> {
    fn map<U, F>(self, f: F) -> [U; 10]
    where
        T: Copy,
        F: FnMut(T) -> U
; fn zip<U, V, F>(self, other: [U; 10], f: F) -> [V; 10]
    where
        T: Copy,
        U: Copy,
        F: FnMut(T, U) -> V
; }

Required Methods

Takes a FnMut(T) -> U closure and creates a new array by calling that closure on each element.

Merges elements with another array by calling a FnMut(T, U) -> V closure for each pair.

Implementors