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

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

Returns the x component.

Returns the y component.

Returns the z component.

Implementors