pub struct TilePixelRect {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Expand description
Integer pixel-space crop rectangle derived from a fallback texture region.
Fields§
§x: u32Left pixel coordinate.
y: u32Top pixel coordinate.
width: u32Rectangle width in pixels.
height: u32Rectangle height in pixels.
Implementations§
Trait Implementations§
Source§impl Clone for TilePixelRect
impl Clone for TilePixelRect
Source§fn clone(&self) -> TilePixelRect
fn clone(&self) -> TilePixelRect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TilePixelRect
impl Debug for TilePixelRect
Source§impl PartialEq for TilePixelRect
impl PartialEq for TilePixelRect
impl Copy for TilePixelRect
impl Eq for TilePixelRect
impl StructuralPartialEq for TilePixelRect
Auto Trait Implementations§
impl Freeze for TilePixelRect
impl RefUnwindSafe for TilePixelRect
impl Send for TilePixelRect
impl Sync for TilePixelRect
impl Unpin for TilePixelRect
impl UnsafeUnpin for TilePixelRect
impl UnwindSafe for TilePixelRect
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