pub struct Offset2D {
pub x: TexelCoordinate,
pub y: TexelCoordinate,
}
Expand description
An offset describes the position of a rectangle, such as a window or texture.
Fields§
§x: TexelCoordinate
X
y: TexelCoordinate
Y
Trait Implementations§
Source§impl From<(i32, i32)> for Offset2D
impl From<(i32, i32)> for Offset2D
Source§fn from(tuple: (TexelCoordinate, TexelCoordinate)) -> Self
fn from(tuple: (TexelCoordinate, TexelCoordinate)) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Offset2D
impl PartialOrd for Offset2D
impl Copy for Offset2D
impl StructuralPartialEq for Offset2D
Auto Trait Implementations§
impl Freeze for Offset2D
impl RefUnwindSafe for Offset2D
impl Send for Offset2D
impl Sync for Offset2D
impl Unpin for Offset2D
impl UnwindSafe for Offset2D
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