pub struct Action<'a, R: BattleRules> {
pub actor: &'a dyn Actor<R>,
pub ability: &'a Ability<R>,
pub activation: &'a Option<Activation<R>>,
}Expand description
An action is comprised by an actor who activates an ability with a given activation profile.
Fields§
§actor: &'a dyn Actor<R>The actor who is activating the ability.
ability: &'a Ability<R>The ability.
activation: &'a Option<Activation<R>>The activation profile for the ability.
Implementations§
Source§impl<'a, R: BattleRules> Action<'a, R>
impl<'a, R: BattleRules> Action<'a, R>
Auto Trait Implementations§
impl<'a, R> Freeze for Action<'a, R>
impl<'a, R> !RefUnwindSafe for Action<'a, R>
impl<'a, R> !Send for Action<'a, R>
impl<'a, R> !Sync for Action<'a, R>
impl<'a, R> Unpin for Action<'a, R>
impl<'a, R> UnsafeUnpin for Action<'a, R>
impl<'a, R> !UnwindSafe for Action<'a, R>
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