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]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Check if intersection of two rectangles is non empty.

[src]

Check if other rectangle is completely inside self.

[src]

Check if given pixel is inside this rectangle.

Trait Implementations

impl Copy for Rect
[src]

impl Clone for Rect
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Rect
[src]

[src]

Formats the value using the given formatter.

impl Eq for Rect
[src]

impl PartialEq for Rect
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for Rect
[src]

[src]

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

1.3.0
[src]

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