pub struct GridRect {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}Expand description
A rectangle on the grid, in twelfths of the unit.
Fields§
§x: u32Left edge.
y: u32Top edge.
w: u32Width.
h: u32Height.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GridRect
impl<'de> Deserialize<'de> for GridRect
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 Copy for GridRect
impl Eq for GridRect
impl StructuralPartialEq for GridRect
Auto Trait Implementations§
impl Freeze for GridRect
impl RefUnwindSafe for GridRect
impl Send for GridRect
impl Sync for GridRect
impl Unpin for GridRect
impl UnsafeUnpin for GridRect
impl UnwindSafe for GridRect
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