Skip to main content

DeclaredSpecMetadata

Struct DeclaredSpecMetadata 

Source
pub struct DeclaredSpecMetadata {
    pub primary_resource: ResourceType,
    pub secondary_resource: Option<ResourceType>,
    pub spell_ids: &'static [u32],
    pub aura_ids: &'static [u32],
    pub server_proc_entries: &'static [DeclaredServerProcEntry],
    pub talents: &'static [(&'static str, u32)],
    pub rotation_field_schema: &'static [&'static str],
    pub metrics_plugin_id: Option<u32>,
    pub hero_talent_trees: &'static [HeroTalentTreeDesc],
    pub reported_spells: &'static [(&'static str, u32)],
    pub masked_passive_effects: &'static [(u32, u8)],
    pub passive_effect_overrides: &'static [DeclaredPassiveEffectOverride],
}
Expand description

Complete static metadata declared by one composed spec manifest.

Fields§

§primary_resource: ResourceType§secondary_resource: Option<ResourceType>§spell_ids: &'static [u32]§aura_ids: &'static [u32]§server_proc_entries: &'static [DeclaredServerProcEntry]§talents: &'static [(&'static str, u32)]§rotation_field_schema: &'static [&'static str]§metrics_plugin_id: Option<u32>§hero_talent_trees: &'static [HeroTalentTreeDesc]§reported_spells: &'static [(&'static str, u32)]§masked_passive_effects: &'static [(u32, u8)]

Passive spell effects this specialization does not receive, as (spell_id, effect_index). The static passive fold skips them, mirroring SimC’s per-spec register_passive_effect_mask and deregister_passive_effect calls.

§passive_effect_overrides: &'static [DeclaredPassiveEffectOverride]

Replacement values for passive effects whose stored value the game never applies. They mirror SimC’s per-spec register_passive_effect_override calls for the shapes a spell’s own description cannot state.

Implementations§

Source§

impl DeclaredSpecMetadata

Source

pub fn validate(&self) -> Result<(), DeclaredSpecMetadataError>

Validate cross-field declaration invariants (duplicate IDs are allowed; symbolic names must be unique per category).

§Errors

Returns a typed error when required IDs, names, or resource relationships are invalid.

Source

fn validate_resolution_sets(&self) -> Result<(), DeclaredSpecMetadataError>

Source

fn validate_named_declarations(&self) -> Result<(), DeclaredSpecMetadataError>

Trait Implementations§

Source§

impl Clone for DeclaredSpecMetadata

Source§

fn clone(&self) -> DeclaredSpecMetadata

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DeclaredSpecMetadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for DeclaredSpecMetadata

Source§

fn eq(&self, other: &DeclaredSpecMetadata) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for DeclaredSpecMetadata

Source§

impl StructuralPartialEq for DeclaredSpecMetadata

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> SpecConfig for T
where T: Any + Debug + Send,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> ResolverSyncBound for T
where T: Sync + ?Sized,