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
max

Methods

impl<N: Sub<Output=N> + Copy> Rect<N>

fn width(&self) -> N

fn height(&self) -> N

Trait Implementations

Derived Implementations

impl<N: Ord> Ord for Rect<N>

fn cmp(&self, __arg_0: &Rect<N>) -> Ordering

impl<N: PartialOrd> PartialOrd for Rect<N>

fn partial_cmp(&self, __arg_0: &Rect<N>) -> Option<Ordering>

fn lt(&self, __arg_0: &Rect<N>) -> bool

fn le(&self, __arg_0: &Rect<N>) -> bool

fn gt(&self, __arg_0: &Rect<N>) -> bool

fn ge(&self, __arg_0: &Rect<N>) -> bool

impl<N: Hash> Hash for Rect<N>

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<N: Eq> Eq for Rect<N>

impl<N: PartialEq> PartialEq for Rect<N>

fn eq(&self, __arg_0: &Rect<N>) -> bool

fn ne(&self, __arg_0: &Rect<N>) -> bool

impl<N: Debug> Debug for Rect<N>

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

impl<N: Clone> Clone for Rect<N>

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

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

impl<N: Copy> Copy for Rect<N>