#[non_exhaustive]pub enum EvalKind {
Show 17 variants
Direct,
TimestampReady,
TimestampRemaining,
TimestampActive,
TimestampElapsed,
TimestampInactive,
CooldownReady,
CooldownFullRecharge,
AuraRefreshable,
PositiveFloat,
ResourceDeficit,
ResourcePct,
ResourceDeficitPct,
ResourceTimeToMax,
UnitHealthPct,
UnitHealthDeficit,
SpellUsable,
}Expand description
Operation used to interpret a field from the dense rotation buffer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Direct
Return the field value without derived evaluation.
TimestampReady
Return whether a timestamp is at or before the current time.
TimestampRemaining
Return the non-negative time remaining until a timestamp.
TimestampActive
Return whether an occupied timestamp has not yet elapsed.
TimestampElapsed
Return the non-negative time elapsed since a timestamp.
TimestampInactive
Return whether a timestamp is unoccupied or elapsed.
CooldownReady
Return whether a cooldown is ready, accounting for charges.
CooldownFullRecharge
Time to full charges: single-charge equals time remaining; multi-charge adds one recharge per still-missing charge.
AuraRefreshable
Refreshable iff remaining < PANDEMIC_REFRESH_FRACTION * base_duration.
PositiveFloat
Return whether a floating-point value is positive.
ResourceDeficit
Return the difference between the maximum and current resource.
ResourcePct
Return current resource as a percentage of its maximum.
ResourceDeficitPct
Return missing resource as a percentage of its maximum.
ResourceTimeToMax
Return the time required to regenerate to maximum resource.
UnitHealthPct
Return current health as a percentage of maximum health.
UnitHealthDeficit
Return the difference between maximum and current health.
SpellUsable
Cross-slot spell usability; extra offsets resolved at JIT compile time via a side-table.
Implementations§
Trait Implementations§
Source§impl IntoWasmAbi for &EvalKind
impl IntoWasmAbi for &EvalKind
Source§impl IntoWasmAbi for EvalKind
impl IntoWasmAbi for EvalKind
Source§impl OptionIntoWasmAbi for EvalKind
impl OptionIntoWasmAbi for EvalKind
Source§impl Tsify for EvalKind
impl Tsify for EvalKind
const DECL: &'static str = "/**\n * Operation used to interpret a field from the dense rotation buffer.\n */\nexport type EvalKind = \"direct\" | \"timestamp_ready\" | \"timestamp_remaining\" | \"timestamp_active\" | \"timestamp_elapsed\" | \"timestamp_inactive\" | \"cooldown_ready\" | \"cooldown_full_recharge\" | \"aura_refreshable\" | \"positive_float\" | \"resource_deficit\" | \"resource_pct\" | \"resource_deficit_pct\" | \"resource_time_to_max\" | \"unit_health_pct\" | \"unit_health_deficit\" | \"spell_usable\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for EvalKind
impl VectorIntoWasmAbi for EvalKind
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for EvalKind
impl WasmDescribeVector for EvalKind
impl Copy for EvalKind
impl Eq for EvalKind
impl StructuralPartialEq for EvalKind
Auto Trait Implementations§
impl Freeze for EvalKind
impl RefUnwindSafe for EvalKind
impl Send for EvalKind
impl Sync for EvalKind
impl Unpin for EvalKind
impl UnsafeUnpin for EvalKind
impl UnwindSafe for EvalKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.