Trait linked_array::Map
[−]
[src]
pub trait Map<T, S>: Array<T> { type Output: Array<S>; fn map<F: Fn(T) -> S>(self, f: F) -> Self::Output; }
An extension of Array that allows for transforming the elements.
Associated Types
Required Methods
fn map<F: Fn(T) -> S>(self, f: F) -> Self::Output
Transform the elements of the array using the provided function.