Trait array::Array3 [] [src]

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

An array with 3 components.

Required Methods

fn map<U, F>(self, f: F) -> [U; 3] where F: Fn(T) -> U

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

fn x(self) -> T

Returns the x component.

fn y(self) -> T

Returns the y component.

fn z(self) -> T

Returns the z component.

Implementors