Struct rusttype::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

min: Point<N> max: Point<N>

Methods

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

fn width(&self) -> N

fn height(&self) -> N

Trait Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

fn clone(&self) -> Rect<N>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

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