Struct sc2::data::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]

Formats the value using the given formatter. Read more

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for Rect<T> where
    T: Send

impl<T> Sync for Rect<T> where
    T: Sync