[−][src]Struct weasel::status::AppliedStatus
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.
fn deref(&self) -> &Self::Target
[src]
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,
<<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,
<<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,
<<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,
<<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,
<<R as BattleRules>::CR as CharacterRules<R>>::Status: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,