Struct sc2::Rect [] [src]

pub struct Rect<T> {
    pub x: T,
    pub y: T,
    pub w: T,
    pub h: T,
}

generic structure to represent a 2D rectangle

Fields

x position of lefthand corner

y position of lefthand corner

width of the rectangle

height of the rectangle

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more