pub struct Rect<V> {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub value: V,
}
Expand description
The stored Rect. Contains its dimensions, position and the associated value.
Fields§
§x: u32
The horizontal position, in pixels, of the top left corner of the rect in the texture. 0 is the left edge of the texture.
y: u32
The vertical position, in pixels, of the top left corner of the rect in the texture. 0 is the top edge of the texture.
width: u32
The width of the rect, in pixels.
height: u32
The height of the rect, in pixels.
value: V
The value associated with this rect.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Rect<V>where
V: Freeze,
impl<V> RefUnwindSafe for Rect<V>where
V: RefUnwindSafe,
impl<V> Send for Rect<V>where
V: Send,
impl<V> Sync for Rect<V>where
V: Sync,
impl<V> Unpin for Rect<V>where
V: Unpin,
impl<V> UnwindSafe for Rect<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more