pub struct SingleMovement {
pub(crate) unit: UnitType,
pub(crate) player_id: PlayerId,
pub(crate) current_position: [usize; 2],
pub(crate) target_position: [usize; 2],
pub(crate) health: u64,
}Fields§
§unit: UnitType§player_id: PlayerId§current_position: [usize; 2]§target_position: [usize; 2]§health: u64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SingleMovement
impl RefUnwindSafe for SingleMovement
impl Send for SingleMovement
impl Sync for SingleMovement
impl Unpin for SingleMovement
impl UnwindSafe for SingleMovement
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