Trait array::Array2 [] [src]

pub trait Array2<T> {
    fn map<U, F>(self, f: F) -> [U; 2]
    where
        F: Fn(T) -> U
; fn x(self) -> T; fn y(self) -> T; }

An array with 2 components.

Required Methods

Converts array into another type, by executing a function for each component.

Returns the x component.

Returns the y component.

Implementors