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
fn map<U, F>(self, f: F) -> [U; 2] where
F: Fn(T) -> U,
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.