[][src]Struct weasel::team::Call

pub struct Call<'a, R: BattleRules> {
    pub team: &'a Team<R>,
    pub power: &'a Power<R>,
    pub invocation: &'a Option<Invocation<R>>,
}

A call is comprised by a team that invokes a power with a given invocation profile.

Fields

team: &'a Team<R>

The team that is invoking the power.

power: &'a Power<R>

The power.

invocation: &'a Option<Invocation<R>>

The invocation profile for the power.

Implementations

impl<'a, R: BattleRules> Call<'a, R>[src]

pub fn new(
    team: &'a Team<R>,
    power: &'a Power<R>,
    invocation: &'a Option<Invocation<R>>
) -> Self
[src]

Creates a new call.

Auto Trait Implementations

impl<'a, R> RefUnwindSafe for Call<'a, R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: RefUnwindSafe,
    <<<R as BattleRules>::TR as TeamRules<R>>::Power as Id>::Id: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Invocation: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Power: RefUnwindSafe

impl<'a, R> Send for Call<'a, R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Sync,
    <<<R as BattleRules>::TR as TeamRules<R>>::Power as Id>::Id: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Invocation: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Power: Sync

impl<'a, R> Sync for Call<'a, R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: Sync,
    <<<R as BattleRules>::TR as TeamRules<R>>::Power as Id>::Id: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Invocation: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: Sync,
    <<R as BattleRules>::TR as TeamRules<R>>::Power: Sync

impl<'a, R> Unpin for Call<'a, R>

impl<'a, R> UnwindSafe for Call<'a, R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::CreatureId: RefUnwindSafe,
    <<<R as BattleRules>::TR as TeamRules<R>>::Power as Id>::Id: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Id: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Invocation: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Objectives: RefUnwindSafe,
    <<R as BattleRules>::TR as TeamRules<R>>::Power: RefUnwindSafe

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>,