pub(crate) struct CastCandidate {
pub(crate) requested_local: LocalSpellIdx,
pub(crate) effective_local: LocalSpellIdx,
pub(crate) cooldown_local: LocalSpellIdx,
pub(crate) override_aura_to_consume: Option<LocalAuraIdx>,
pub(crate) target: EnemyIdx,
resolved_cast_time_ms: Option<u32>,
}Expand description
Requested and effective cast identities resolved once for one eligibility decision.
Fields§
§requested_local: LocalSpellIdx§effective_local: LocalSpellIdx§cooldown_local: LocalSpellIdx§override_aura_to_consume: Option<LocalAuraIdx>§target: EnemyIdx§resolved_cast_time_ms: Option<u32>Implementations§
Source§impl CastCandidate
impl CastCandidate
pub(crate) fn resolve_planned( instance: &CombatInstance, binding: RotationSpellBinding, target: EnemyIdx, ) -> Self
pub(crate) fn requested(self, program: &CombatProgram) -> &SpellData
pub(crate) fn effective(self, program: &CombatProgram) -> &SpellData
pub(crate) fn requested_profile(self, program: &CombatProgram) -> &CastProfile
pub(crate) fn effective_profile(self, program: &CombatProgram) -> &CastProfile
pub(crate) fn requested_spell_id(self, program: &CombatProgram) -> u32
pub(crate) fn requested_slot(self, program: &CombatProgram) -> SpellSlotHandle
pub(crate) fn effective_slot(self, program: &CombatProgram) -> SpellSlotHandle
pub(crate) fn effective_history( self, program: &CombatProgram, ) -> HistorySlotHandle
pub(crate) fn cooldown_slot(self, program: &CombatProgram) -> CooldownSlotHandle
pub(crate) const fn resolved_cast_time_ms(self) -> Option<u32>
pub(crate) const fn with_resolved_cast_time_ms(self, cast_time_ms: u32) -> Self
Trait Implementations§
Source§impl Clone for CastCandidate
impl Clone for CastCandidate
Source§fn clone(&self) -> CastCandidate
fn clone(&self) -> CastCandidate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CastCandidate
impl Debug for CastCandidate
impl Copy for CastCandidate
Auto Trait Implementations§
impl Freeze for CastCandidate
impl RefUnwindSafe for CastCandidate
impl Send for CastCandidate
impl Sync for CastCandidate
impl Unpin for CastCandidate
impl UnsafeUnpin for CastCandidate
impl UnwindSafe for CastCandidate
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
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