[][src]Struct weasel::status::InflictStatusTrigger

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

Trigger to build and fire an InflictStatus event.

Implementations

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

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

Specify the potency of the status.

Trait Implementations

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

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

Returns an InflictStatus event.

Auto Trait Implementations

impl<'a, R, P> RefUnwindSafe for InflictStatusTrigger<'a, R, P> where
    P: RefUnwindSafe,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: RefUnwindSafe,
    <<<R as BattleRules>::CR as CharacterRules<R>>::Status as Id>::Id: RefUnwindSafe,
    <<R as BattleRules>::CR as CharacterRules<R>>::ObjectId: RefUnwindSafe,
    <<R as BattleRules>::FR as FightRules<R>>::Potency: RefUnwindSafe

impl<'a, R, P> Send for InflictStatusTrigger<'a, R, P> where
    P: Send,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Send,
    <<<R as BattleRules>::CR as CharacterRules<R>>::Status as Id>::Id: Send,
    <<R as BattleRules>::CR as CharacterRules<R>>::ObjectId: Send,
    <<R as BattleRules>::FR as FightRules<R>>::Potency: Send

impl<'a, R, P> Sync for InflictStatusTrigger<'a, R, P> where
    P: Sync,
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Sync,
    <<<R as BattleRules>::CR as CharacterRules<R>>::Status as Id>::Id: Sync,
    <<R as BattleRules>::CR as CharacterRules<R>>::ObjectId: Sync,
    <<R as BattleRules>::FR as FightRules<R>>::Potency: Sync

impl<'a, R, P> Unpin for InflictStatusTrigger<'a, R, P> where
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Unpin,
    <<<R as BattleRules>::CR as CharacterRules<R>>::Status as Id>::Id: Unpin,
    <<R as BattleRules>::CR as CharacterRules<R>>::ObjectId: Unpin,
    <<R as BattleRules>::FR as FightRules<R>>::Potency: Unpin

impl<'a, R, P> !UnwindSafe for InflictStatusTrigger<'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>,