#[non_exhaustive]pub struct TileRect {
pub tx: u32,
pub ty: u32,
pub tw: u32,
pub th: u32,
}Expand description
Tile-grid rectangle (position + extent in tile units).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tx: u32Left column in tile units.
ty: u32Top row in tile units.
tw: u32Width in tile units.
th: u32Height in tile units.
Implementations§
Trait Implementations§
impl Copy for TileRect
Source§impl<'de> Deserialize<'de> for TileRect
impl<'de> Deserialize<'de> for TileRect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TileRect
impl StructuralPartialEq for TileRect
Auto Trait Implementations§
impl Freeze for TileRect
impl RefUnwindSafe for TileRect
impl Send for TileRect
impl Sync for TileRect
impl Unpin for TileRect
impl UnsafeUnpin for TileRect
impl UnwindSafe for TileRect
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