pub struct TalentSelection {
pub spell_id: u32,
pub override_spell_id: u32,
pub replaces_spell_id: u32,
pub ranks: u8,
pub precombat_aura: bool,
pub hero_tree: Option<String>,
pub effect_overrides: Vec<TalentEffectOverride>,
}Expand description
One talent picked from a decoded loadout.
Fields§
§spell_id: u32§override_spell_id: u32TraitDefinition.VisibleSpellID, zero when absent; SimC’s id_override_spell.
replaces_spell_id: u32TraitDefinition.OverridesSpellID, zero when absent; the action-bar spell this talent replaces.
ranks: u8§precombat_aura: bool§hero_tree: Option<String>§effect_overrides: Vec<TalentEffectOverride>Implementations§
Source§impl TalentSelection
impl TalentSelection
Sourcepub const fn addresses(&self, spell_id: u32) -> bool
pub const fn addresses(&self, spell_id: u32) -> bool
Whether this selection is addressed by spell_id, through either of its two ids.
Sourcepub const fn override_spell(&self) -> Option<u32>
pub const fn override_spell(&self) -> Option<u32>
The node’s override id when it has one, otherwise nothing.
Sourcepub const fn replaced_spell(&self) -> Option<u32>
pub const fn replaced_spell(&self) -> Option<u32>
The distinct action displaced by this selected node, when OverridesSpellID names one.
Trait Implementations§
Source§impl Clone for TalentSelection
impl Clone for TalentSelection
Source§fn clone(&self) -> TalentSelection
fn clone(&self) -> TalentSelection
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 moreAuto Trait Implementations§
impl Freeze for TalentSelection
impl RefUnwindSafe for TalentSelection
impl Send for TalentSelection
impl Sync for TalentSelection
impl Unpin for TalentSelection
impl UnsafeUnpin for TalentSelection
impl UnwindSafe for TalentSelection
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