Struct rusttype_bugfix_19072017::Rect [] [src]

pub struct Rect<N> {
    pub min: Point<N>,
    pub max: Point<N>,
}

A rectangle, with top-left corner at min, and bottom-right corner at max.

Fields

Methods

impl<N: Sub<Output = N> + Copy> Rect<N>
[src]

Trait Implementations

impl<N: Copy> Copy for Rect<N>
[src]

impl<N: Clone> Clone for Rect<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug> Debug for Rect<N>
[src]

Formats the value using the given formatter.

impl<N: PartialEq> PartialEq for Rect<N>
[src]

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

This method tests for !=.

impl<N: Eq> Eq for Rect<N>
[src]

impl<N: Hash> Hash for Rect<N>
[src]

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

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

impl<N: PartialOrd> PartialOrd for Rect<N>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<N: Ord> Ord for Rect<N>
[src]

This method returns an Ordering between self and other. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more