pub struct Delta {
pub x: i8,
pub y: i8,
}Expand description
A single unit change in relative position meant to be added to a Position
values intended to be either 1, 0 or -1 and transformed from a Direction
Fields§
§x: i8§y: i8Trait Implementations§
impl StructuralPartialEq for Delta
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnwindSafe for Delta
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