[][src]Struct weasel::ability::ActivateAbilityTrigger

pub struct ActivateAbilityTrigger<'a, R, P> where
    R: BattleRules,
    P: EventProcessor<R>, 
{ /* fields omitted */ }

Trigger to build and fire an ActivateAbility event.

Implementations

impl<'a, R, P> ActivateAbilityTrigger<'a, R, P> where
    R: BattleRules + 'static,
    P: EventProcessor<R>, 
[src]

pub fn activation(&'a mut self, activation: Activation<R>) -> &'a mut Self[src]

Adds an activation profile to customize this ability instance.

Trait Implementations

impl<'a, R, P> EventTrigger<'a, R, P> for ActivateAbilityTrigger<'a, R, P> where
    R: BattleRules + 'static,
    P: EventProcessor<R>, 
[src]

fn event(&self) -> Box<dyn Event<R> + Send>[src]

Returns an ActivateAbility event.

Auto Trait Implementations

impl<'a, R, P> RefUnwindSafe for ActivateAbilityTrigger<'a, R, P> where
    P: RefUnwindSafe,
    <<R as BattleRules>::AR as ActorRules<R>>::Activation: RefUnwindSafe,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: RefUnwindSafe,
    <<<R as BattleRules>::AR as ActorRules<R>>::Ability as Id>::Id: RefUnwindSafe,
    <<R as BattleRules>::CR as CharacterRules<R>>::ObjectId: RefUnwindSafe

impl<'a, R, P> Send for ActivateAbilityTrigger<'a, R, P> where
    P: Send,
    <<R as BattleRules>::AR as ActorRules<R>>::Activation: Send,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Send,
    <<<R as BattleRules>::AR as ActorRules<R>>::Ability as Id>::Id: Send,
    <<R as BattleRules>::CR as CharacterRules<R>>::ObjectId: Send

impl<'a, R, P> Sync for ActivateAbilityTrigger<'a, R, P> where
    P: Sync,
    <<R as BattleRules>::AR as ActorRules<R>>::Activation: Sync,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Sync,
    <<<R as BattleRules>::AR as ActorRules<R>>::Ability as Id>::Id: Sync,
    <<R as BattleRules>::CR as CharacterRules<R>>::ObjectId: Sync

impl<'a, R, P> Unpin for ActivateAbilityTrigger<'a, R, P> where
    <<R as BattleRules>::AR as ActorRules<R>>::Activation: Unpin,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Unpin,
    <<<R as BattleRules>::AR as ActorRules<R>>::Ability as Id>::Id: Unpin,
    <<R as BattleRules>::CR as CharacterRules<R>>::ObjectId: Unpin

impl<'a, R, P> !UnwindSafe for ActivateAbilityTrigger<'a, R, P>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,