Struct rect_packer::Rect [] [src]

pub struct Rect {
    pub x: i32,
    pub y: i32,
    pub width: i32,
    pub height: i32,
}

Rectangle with integer coordinates.

Fields

Methods

impl Rect
[src]

Check if intersection of two rectangles is non empty.

Check if other rectangle is completely inside self.

Check if given pixel is inside this rectangle.

Trait Implementations

impl Copy for Rect
[src]

impl Clone for Rect
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Rect
[src]

Formats the value using the given formatter.

impl Eq for Rect
[src]

impl PartialEq for Rect
[src]

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

This method tests for !=.

impl Hash for Rect
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.