Trait rect_iter::IntoTuple2 [−][src]
pub trait IntoTuple2<T> { fn into_tuple2(self) -> (T, T); }
To manipulate many Point libraries in the same way, we use tuple as a entry point of API. If you implement IntoTuple2 to your point type, you can use it as Point in this library.
Example
use rect_iter::IntoTuple2; struct Point { x: f64, y: f64, } impl IntoTuple2<f64> for Point { fn into_tuple2(self) -> (f64, f64) { (self.x, self.y) } }
Required Methods
fn into_tuple2(self) -> (T, T)
Implementations on Foreign Types
impl<T: Clone, U> IntoTuple2<T> for TypedPoint2D<T, U>
[src]
impl<T: Clone, U> IntoTuple2<T> for TypedPoint2D<T, U>
fn into_tuple2(self) -> (T, T)
[src]
fn into_tuple2(self) -> (T, T)
impl<T: Clone, U> IntoTuple2<T> for TypedVector2D<T, U>
[src]
impl<T: Clone, U> IntoTuple2<T> for TypedVector2D<T, U>
fn into_tuple2(self) -> (T, T)
[src]
fn into_tuple2(self) -> (T, T)
impl<T> IntoTuple2<T> for (T, T)
[src]
impl<T> IntoTuple2<T> for (T, T)
fn into_tuple2(self) -> (T, T)
[src]
fn into_tuple2(self) -> (T, T)