pub(crate) struct BufferBindings {Show 14 fields
spells: Box<[SpellSlotHandle]>,
cooldowns: Box<[CooldownSlotHandle]>,
history: Box<[HistorySlotHandle]>,
auras: Box<[ConcreteAuraBinding]>,
aura_coordinates: Box<[Option<ConcreteAuraBinding>]>,
aura_shape_len: usize,
enemy_count: usize,
aura_ons: Box<[AuraOn]>,
resources: Box<[(ResourceType, ResourceSlotHandle)]>,
talents: Box<[(Box<str>, TalentSlotHandle)]>,
items: Box<[(Box<str>, ItemSlotHandle)]>,
swings: Box<[SwingSlotHandle]>,
weapon_imbues: Box<[(Box<str>, WeaponImbueSlotHandle)]>,
target_unit: UnitSlotHandle,
}Fields§
§spells: Box<[SpellSlotHandle]>§cooldowns: Box<[CooldownSlotHandle]>§history: Box<[HistorySlotHandle]>§auras: Box<[ConcreteAuraBinding]>§aura_coordinates: Box<[Option<ConcreteAuraBinding>]>§aura_shape_len: usize§enemy_count: usize§aura_ons: Box<[AuraOn]>§resources: Box<[(ResourceType, ResourceSlotHandle)]>§talents: Box<[(Box<str>, TalentSlotHandle)]>§items: Box<[(Box<str>, ItemSlotHandle)]>§swings: Box<[SwingSlotHandle]>§weapon_imbues: Box<[(Box<str>, WeaponImbueSlotHandle)]>§target_unit: UnitSlotHandleImplementations§
Source§impl BufferBindings
impl BufferBindings
pub(crate) fn build( schema: &ContextSchema, requirements: &BufferRequirements, definitions: &DraftDefinitions, talent_ranks: &[(String, u8)], initial_weapon_imbues: &[(&'static str, bool)], ) -> Result<Self, BufferBindingError>
pub(crate) fn spell(&self, local: LocalSpellIdx) -> SpellSlotHandle
pub(crate) fn cooldown(&self, local: LocalSpellIdx) -> CooldownSlotHandle
pub(crate) fn history(&self, local: LocalSpellIdx) -> HistorySlotHandle
pub(crate) fn aura( &self, local: LocalAuraIdx, key: AuraKey, ) -> Option<ConcreteAuraBinding>
pub(crate) fn aura_bindings( &self, ) -> impl Iterator<Item = ConcreteAuraBinding> + '_
pub(crate) const fn aura_binding_count(&self) -> usize
pub(crate) const fn aura_local_count(&self) -> usize
pub(crate) fn resource(&self, key: ResourceType) -> Option<ResourceSlotHandle>
pub(crate) fn talent(&self, key: &str) -> Option<TalentSlotHandle>
pub(crate) fn item(&self, key: &str) -> Option<ItemSlotHandle>
pub(crate) fn swing(&self, index: usize) -> Option<SwingSlotHandle>
pub(crate) fn weapon_imbue(&self, key: &str) -> Option<WeaponImbueSlotHandle>
pub(crate) const fn target_unit(&self) -> UnitSlotHandle
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BufferBindings
impl RefUnwindSafe for BufferBindings
impl Send for BufferBindings
impl Sync for BufferBindings
impl Unpin for BufferBindings
impl UnsafeUnpin for BufferBindings
impl UnwindSafe for BufferBindings
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