pub struct ActionError {
pub unit: u64,
pub ability: AbilityId,
pub result: ActionResult,
}Expand description
Structure used to analyze actions failed on previous game step.
Stored in state.action_errors.
Fields§
§unit: u64Tag of unit that was executing action.
ability: AbilityIdAbility that was used by this unit.
result: ActionResultResult of executed action.
Trait Implementations§
Source§impl Clone for ActionError
impl Clone for ActionError
Source§fn clone(&self) -> ActionError
fn clone(&self) -> ActionError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionError
impl Debug for ActionError
Source§impl Hash for ActionError
impl Hash for ActionError
Source§impl PartialEq for ActionError
impl PartialEq for ActionError
impl Copy for ActionError
impl Eq for ActionError
impl StructuralPartialEq for ActionError
Auto Trait Implementations§
impl Freeze for ActionError
impl RefUnwindSafe for ActionError
impl Send for ActionError
impl Sync for ActionError
impl Unpin for ActionError
impl UnwindSafe for ActionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.