pub struct Origin2D {
pub x: u32,
pub y: u32,
}
Expand description
A two-dimensional origin, typically representing an (x, y) offset.
This is often used to specify the top-left corner of a rectangular region.
Fields§
§x: u32
The x-coordinate of the origin.
y: u32
The y-coordinate of the origin.
Trait Implementations§
impl Copy for Origin2D
impl Eq for Origin2D
impl StructuralPartialEq for Origin2D
Auto Trait Implementations§
impl Freeze for Origin2D
impl RefUnwindSafe for Origin2D
impl Send for Origin2D
impl Sync for Origin2D
impl Unpin for Origin2D
impl UnwindSafe for Origin2D
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