Struct rinmath::Rect[][src]

pub struct Rect<T: BaseNum> {
    pub pos: Pnt2<T>,
    pub width: T,
    pub height: T,
}

Fields

Methods

impl<T: Float + BaseNum> Rect<T>
[src]

impl<T: BaseNum> Rect<T>
[src]

Trait Implementations

impl<T: Clone + BaseNum> Clone for Rect<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + BaseNum> Copy for Rect<T>
[src]

impl<T: Debug + BaseNum> Debug for Rect<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq + BaseNum> PartialEq for Rect<T>
[src]

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

This method tests for !=.

impl<N1: BaseNum, N2: BaseNum + SupersetOf<N1>> SubsetOf<Rect<N2>> for Rect<N1> where
    Pnt2<N2>: SupersetOf<Pnt2<N1>>, 
[src]

Checks if element is actually part of the subset Self (and can be converted to it).

Use with care! Same as self.to_superset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Auto Trait Implementations

impl<T> Send for Rect<T> where
    T: Send

impl<T> Sync for Rect<T> where
    T: Sync