pub struct AtlasRect {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}Expand description
The pixel rectangle occupied by an atlas allocation.
Fields§
§x: u32Left edge in atlas-space pixels.
y: u32Top edge in atlas-space pixels.
w: u32Width in pixels.
h: u32Height in pixels.
Trait Implementations§
impl Copy for AtlasRect
impl Eq for AtlasRect
impl StructuralPartialEq for AtlasRect
Auto Trait Implementations§
impl Freeze for AtlasRect
impl RefUnwindSafe for AtlasRect
impl Send for AtlasRect
impl Sync for AtlasRect
impl Unpin for AtlasRect
impl UnsafeUnpin for AtlasRect
impl UnwindSafe for AtlasRect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.