pub struct Allocation {
pub id: AllocId,
pub x: u32,
pub y: u32,
}Expand description
The result of a successful rectangle allocation within a single atlas.
Fields§
§id: AllocIdOpaque handle used for deallocation.
x: u32X coordinate of the top-left corner of the allocated rectangle.
y: u32Y coordinate of the top-left corner of the allocated rectangle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnsafeUnpin for Allocation
impl UnwindSafe for Allocation
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