#[repr(C)]pub struct Entity {
pub id: u32,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Expand description
A rectangular entity. Identifier must be unique.
Fields§
§id: u32Identifier must be unique.
x: u32§y: u32§width: u32§height: u32Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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