Struct dvec::Rect2 [] [src]

#[repr(C)]
pub struct Rect2<T>(pub Vec2<T>, pub Vec2<T>);

Axis-aligned rectangle type.

Methods

impl<T> Rect2<T>
[src]

Trait Implementations

impl<T: Clone> Clone for Rect2<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Rect2<T>
[src]

impl<T: Debug> Debug for Rect2<T>
[src]

Formats the value using the given formatter.

impl<T: Default> Default for Rect2<T>
[src]

Returns the "default value" for a type. Read more

impl<T: Eq> Eq for Rect2<T>
[src]

impl<T: Hash> Hash for Rect2<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: PartialEq> PartialEq for Rect2<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Mul<T> for Rect2<T> where
    T: Copy + Mul<Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> Mul<&'a T> for Rect2<T> where
    T: Mul<&'a T, Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> Mul<T> for &'a Rect2<T> where
    T: Copy,
    &'a T: Mul<T, Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, 'b, T> Mul<&'b T> for &'a Rect2<T> where
    &'a T: Mul<&'b T, Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T> Div<T> for Rect2<T> where
    T: Copy + Div<Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a, T> Div<&'a T> for Rect2<T> where
    T: Div<&'a T, Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a, T> Div<T> for &'a Rect2<T> where
    T: Copy,
    &'a T: Div<T, Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a, 'b, T> Div<&'b T> for &'a Rect2<T> where
    &'a T: Div<&'b T, Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T> MulAssign<T> for Rect2<T> where
    T: Copy + MulAssign
[src]

The method for the *= operator

impl<'a, T> MulAssign<&'a T> for Rect2<T> where
    T: MulAssign<&'a T>, 
[src]

The method for the *= operator

impl<T> DivAssign<T> for Rect2<T> where
    T: Copy + DivAssign
[src]

The method for the /= operator

impl<'a, T> DivAssign<&'a T> for Rect2<T> where
    T: DivAssign<&'a T>, 
[src]

The method for the /= operator

impl<T> Add<Vec2<T>> for Rect2<T> where
    T: Copy + Add<Output = T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a, T> Add<&'a Vec2<T>> for Rect2<T> where
    T: Add<&'a T, Output = T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a, T> Add<Vec2<T>> for &'a Rect2<T> where
    T: Copy,
    &'a T: Add<T, Output = T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a, 'b, T> Add<&'b Vec2<T>> for &'a Rect2<T> where
    &'a T: Add<&'b T, Output = T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T> Sub<Vec2<T>> for Rect2<T> where
    T: Copy + Sub<Output = T>, 
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a, T> Sub<&'a Vec2<T>> for Rect2<T> where
    T: Sub<&'a T, Output = T>, 
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a, T> Sub<Vec2<T>> for &'a Rect2<T> where
    T: Copy,
    &'a T: Sub<T, Output = T>, 
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a, 'b, T> Sub<&'b Vec2<T>> for &'a Rect2<T> where
    &'a T: Sub<&'b T, Output = T>, 
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T> Mul<Vec2<T>> for Rect2<T> where
    T: Copy + Mul<Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> Mul<&'a Vec2<T>> for Rect2<T> where
    T: Mul<&'a T, Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> Mul<Vec2<T>> for &'a Rect2<T> where
    T: Copy,
    &'a T: Mul<T, Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, 'b, T> Mul<&'b Vec2<T>> for &'a Rect2<T> where
    &'a T: Mul<&'b T, Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T> Div<Vec2<T>> for Rect2<T> where
    T: Copy + Div<Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a, T> Div<&'a Vec2<T>> for Rect2<T> where
    T: Div<&'a T, Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a, T> Div<Vec2<T>> for &'a Rect2<T> where
    T: Copy,
    &'a T: Div<T, Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a, 'b, T> Div<&'b Vec2<T>> for &'a Rect2<T> where
    &'a T: Div<&'b T, Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T> AddAssign<Vec2<T>> for Rect2<T> where
    T: Copy,
    Vec2<T>: AddAssign
[src]

The method for the += operator

impl<'a, T> AddAssign<&'a Vec2<T>> for Rect2<T> where
    Vec2<T>: AddAssign<&'a Vec2<T>>, 
[src]

The method for the += operator

impl<T> SubAssign<Vec2<T>> for Rect2<T> where
    T: Copy,
    Vec2<T>: SubAssign
[src]

The method for the -= operator

impl<'a, T> SubAssign<&'a Vec2<T>> for Rect2<T> where
    Vec2<T>: SubAssign<&'a Vec2<T>>, 
[src]

The method for the -= operator

impl<T> MulAssign<Vec2<T>> for Rect2<T> where
    T: Copy,
    Vec2<T>: MulAssign
[src]

The method for the *= operator

impl<'a, T> MulAssign<&'a Vec2<T>> for Rect2<T> where
    Vec2<T>: MulAssign<&'a Vec2<T>>, 
[src]

The method for the *= operator

impl<T> DivAssign<Vec2<T>> for Rect2<T> where
    T: Copy,
    Vec2<T>: DivAssign
[src]

The method for the /= operator

impl<'a, T> DivAssign<&'a Vec2<T>> for Rect2<T> where
    Vec2<T>: DivAssign<&'a Vec2<T>>, 
[src]

The method for the /= operator

impl<T> Neg for Rect2<T> where
    T: Neg<Output = T>, 
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<'a, T> Neg for &'a Rect2<T> where
    &'a T: Neg<Output = T>, 
[src]

The resulting type after applying the - operator

The method for the unary - operator