pub struct AtlasRegion {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
/* private fields */
}Expand description
A region within the atlas texture.
Fields§
§x: u32§y: u32§w: u32§h: u32Trait Implementations§
Source§impl Clone for AtlasRegion
impl Clone for AtlasRegion
Source§fn clone(&self) -> AtlasRegion
fn clone(&self) -> AtlasRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AtlasRegion
Auto Trait Implementations§
impl Freeze for AtlasRegion
impl RefUnwindSafe for AtlasRegion
impl Send for AtlasRegion
impl Sync for AtlasRegion
impl Unpin for AtlasRegion
impl UnsafeUnpin for AtlasRegion
impl UnwindSafe for AtlasRegion
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