Trait array_ext::sized::Array8
[−]
[src]
pub trait Array8<T>: Array<T> { fn map<U, F>(self, f: F) -> [U; 8]
where
T: Copy,
F: FnMut(T) -> U; fn zip<U, V, F>(self, other: [U; 8], f: F) -> [V; 8]
where
T: Copy,
U: Copy,
F: FnMut(T, U) -> V; }
Required Methods
fn map<U, F>(self, f: F) -> [U; 8] where
T: Copy,
F: FnMut(T) -> U,
T: Copy,
F: FnMut(T) -> U,
Takes a FnMut(T) -> U
closure and creates a new array by calling that closure on each element.
fn zip<U, V, F>(self, other: [U; 8], f: F) -> [V; 8] where
T: Copy,
U: Copy,
F: FnMut(T, U) -> V,
T: Copy,
U: Copy,
F: FnMut(T, U) -> V,
Merges elements with another array by calling a FnMut(T, U) -> V
closure for each pair.