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

The resulting Array from performing the map.

Required Methods

Transform the elements of the array using the provided function.

Implementors