[][src]Struct weasel::status::AppliedStatus

pub struct AppliedStatus<R: BattleRules> { /* fields omitted */ }

Stores a Status and additional information about it.

Implementations

impl<R: BattleRules> AppliedStatus<R>[src]

pub fn new(status: Status<R>) -> Self[src]

Creates a new AppliedStatus without any origin.

pub fn with_origin(status: Status<R>, origin: EventId) -> Self[src]

Creates a new AppliedStatus with an origin.

pub fn status(&self) -> &Status<R>[src]

Returns a reference to the status.

pub fn status_mut(&mut self) -> &mut Status<R>[src]

Returns a mutable reference to the status.

pub fn origin(&self) -> Option<EventId>[src]

Returns the origin event's id of this status.

pub fn duration(&self) -> StatusDuration[src]

Returns for how many turns the status has been in place.
Duration is increased at every turn start.

Trait Implementations

impl<R: BattleRules> Deref for AppliedStatus<R>[src]

type Target = Status<R>

The resulting type after dereferencing.

impl<R: BattleRules> DerefMut for AppliedStatus<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for AppliedStatus<R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::Status: RefUnwindSafe

impl<R> Send for AppliedStatus<R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::Status: Send

impl<R> Sync for AppliedStatus<R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::Status: Sync

impl<R> Unpin for AppliedStatus<R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::Status: Unpin

impl<R> UnwindSafe for AppliedStatus<R> where
    <<R as BattleRules>::CR as CharacterRules<R>>::Status: UnwindSafe

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