Struct Call

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

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§

Source§

impl<'a, R: BattleRules> Call<'a, R>

Source

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

Creates a new call.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V