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: T
X position of lefthand corner.
y: T
Y position of lefthand corner.
w: T
Width of the rectangle.
h: T
Height of the rectangle.
Trait Implementations
impl<T: Debug> Debug for Rect<T>
[src]
impl<T: Debug> Debug for Rect<T>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Copy> Copy for Rect<T>
[src]
impl<T: Copy> Copy for Rect<T>
impl<T: Clone> Clone for Rect<T>
[src]
impl<T: Clone> Clone for Rect<T>