#[repr(C)]pub struct AuraSlot {Show 16 fields
pub expires_at: f64,
pub base_duration: f64,
pub stacks: i32,
pub max_stacks: i32,
pub next_tick: f64,
pub tick_interval: f64,
pub base_tick_interval: f64,
pub time_rate_multiplier: f64,
pub remaining_ticks: i32,
pub snapshot_has: i32,
pub snapshot_ap: f64,
pub snapshot_sp: f64,
pub snapshot_crit: f64,
pub snapshot_vers: f64,
pub snapshot_mastery_mult: f64,
pub snapshot_damage_mult: f64,
}Fields§
§expires_at: f64§base_duration: f64§stacks: i32§max_stacks: i32§next_tick: f64§tick_interval: f64§base_tick_interval: f64Unhasted tick interval, set at apply; used to recompute next tick against current haste.
time_rate_multiplier: f64Current SimC-compatible wall-clock multiplier from aura time-rate effects.
remaining_ticks: i32§snapshot_has: i321 when the aura carries a source-side stat snapshot, 0 for live/dynamic stats.
snapshot_ap: f64§snapshot_sp: f64§snapshot_crit: f64§snapshot_vers: f64§snapshot_mastery_mult: f64§snapshot_damage_mult: f64Rolling damage multiplier; pandemic “keep higher” compares this.
Implementations§
Source§impl AuraSlot
impl AuraSlot
pub fn remove(&mut self)
Sourcepub fn is_occupied(&self) -> bool
pub fn is_occupied(&self) -> bool
True when the slot holds an aura instance, regardless of active state at any now.
Sourcepub fn is_active(&self, now: f64) -> bool
pub fn is_active(&self, now: f64) -> bool
True when occupied and not yet expired at now; exact negation of is_inactive.
pub fn is_inactive(&self, now: f64) -> bool
pub fn is_refreshable(&self, now: f64) -> bool
pub fn is_ticking(&self) -> bool
Source§impl AuraSlot
impl AuraSlot
pub const SIZE: usize
pub const OFF_EXPIRES_AT: usize
pub const OFF_BASE_DURATION: usize
pub const OFF_STACKS: usize
pub const OFF_MAX_STACKS: usize
pub const OFF_NEXT_TICK: usize
pub const OFF_TICK_INTERVAL: usize
pub const OFF_BASE_TICK_INTERVAL: usize
pub const OFF_TIME_RATE_MULTIPLIER: usize
pub const OFF_REMAINING_TICKS: usize
pub const OFF_SNAPSHOT_HAS: usize
pub const OFF_SNAPSHOT_AP: usize
pub const OFF_SNAPSHOT_SP: usize
pub const OFF_SNAPSHOT_CRIT: usize
pub const OFF_SNAPSHOT_VERS: usize
pub const OFF_SNAPSHOT_MASTERY_MULT: usize
pub const OFF_SNAPSHOT_DAMAGE_MULT: usize
Sourcepub fn dump_fields(&self, out: &mut String)
pub fn dump_fields(&self, out: &mut String)
Append human-readable field name/value pairs to the output string.
Trait Implementations§
impl Copy for AuraSlot
impl Pod for AuraSlot
Auto Trait Implementations§
impl Freeze for AuraSlot
impl RefUnwindSafe for AuraSlot
impl Send for AuraSlot
impl Sync for AuraSlot
impl Unpin for AuraSlot
impl UnsafeUnpin for AuraSlot
impl UnwindSafe for AuraSlot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more