pub(crate) struct FrozenBufferBindings {Show 13 fields
concrete_auras: Box<[(AuraKey, AuraSlotHandle)]>,
aura_projections: Box<[(AuraProjectionKey, AuraProjectionSlotHandle)]>,
spells: Box<[(SpellIdx, SpellSlotHandle)]>,
cooldowns: Box<[(SpellIdx, CooldownSlotHandle)]>,
history: Box<[(SpellIdx, HistorySlotHandle)]>,
resources: Box<[(ResourceType, ResourceSlotHandle)]>,
hero_trees: Box<[(Box<str>, HeroTreeSlotHandle)]>,
items: Box<[(Box<str>, ItemSlotHandle)]>,
swings: Box<[(Box<str>, SwingSlotHandle)]>,
equipment: Box<[(Box<str>, EquipmentSlotHandle)]>,
set_bonuses: Box<[(Box<str>, SetBonusSlotHandle)]>,
units: Box<[(Box<str>, UnitSlotHandle)]>,
weapon_imbues: Box<[(Box<str>, WeaponImbueSlotHandle)]>,
}Expand description
Construction-validated bindings with stable traversal and no keyed lookup.
Fields§
§concrete_auras: Box<[(AuraKey, AuraSlotHandle)]>§aura_projections: Box<[(AuraProjectionKey, AuraProjectionSlotHandle)]>§spells: Box<[(SpellIdx, SpellSlotHandle)]>§cooldowns: Box<[(SpellIdx, CooldownSlotHandle)]>§history: Box<[(SpellIdx, HistorySlotHandle)]>§resources: Box<[(ResourceType, ResourceSlotHandle)]>§hero_trees: Box<[(Box<str>, HeroTreeSlotHandle)]>§items: Box<[(Box<str>, ItemSlotHandle)]>§swings: Box<[(Box<str>, SwingSlotHandle)]>§equipment: Box<[(Box<str>, EquipmentSlotHandle)]>§set_bonuses: Box<[(Box<str>, SetBonusSlotHandle)]>§units: Box<[(Box<str>, UnitSlotHandle)]>§weapon_imbues: Box<[(Box<str>, WeaponImbueSlotHandle)]>Implementations§
Source§impl FrozenBufferBindings
impl FrozenBufferBindings
pub(crate) fn aura_projections( &self, ) -> impl ExactSizeIterator<Item = (AuraProjectionKey, AuraProjectionSlotHandle)> + '_
pub(crate) fn spells( &self, ) -> impl ExactSizeIterator<Item = (SpellIdx, SpellSlotHandle)> + '_
pub(crate) fn cooldowns( &self, ) -> impl ExactSizeIterator<Item = (SpellIdx, CooldownSlotHandle)> + '_
pub(crate) fn resources( &self, ) -> impl ExactSizeIterator<Item = (ResourceType, ResourceSlotHandle)> + '_
pub(crate) fn items( &self, ) -> impl ExactSizeIterator<Item = (&str, ItemSlotHandle)> + '_
pub(crate) fn swings( &self, ) -> impl ExactSizeIterator<Item = (&str, SwingSlotHandle)> + '_
pub(crate) fn units( &self, ) -> impl ExactSizeIterator<Item = (&str, UnitSlotHandle)> + '_
pub(crate) fn weapon_imbues( &self, ) -> impl ExactSizeIterator<Item = (&str, WeaponImbueSlotHandle)> + '_
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrozenBufferBindings
impl RefUnwindSafe for FrozenBufferBindings
impl Send for FrozenBufferBindings
impl Sync for FrozenBufferBindings
impl Unpin for FrozenBufferBindings
impl UnsafeUnpin for FrozenBufferBindings
impl UnwindSafe for FrozenBufferBindings
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> 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