pub struct Move {
pub origin: Coords,
pub destination: Coords,
}Fields§
§origin: Coords§destination: CoordsImplementations§
Source§impl Move
impl Move
pub fn x_distance(&self) -> isize
pub fn y_abs_distance(&self) -> usize
pub fn x_abs_distance(&self) -> usize
Trait Implementations§
impl Eq for Move
impl StructuralPartialEq for Move
Auto Trait Implementations§
impl Freeze for Move
impl RefUnwindSafe for Move
impl Send for Move
impl Sync for Move
impl Unpin for Move
impl UnwindSafe for Move
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