pub struct BufferRequirements {Show 18 fields
pub(crate) cooldowns: Vec<SpellIdx>,
cooldown_set: FastSet<SpellIdx>,
pub(crate) auras: Vec<AuraKey>,
aura_set: FastSet<AuraKey>,
pub(crate) resources: Vec<ResourceType>,
resource_set: FastSet<ResourceType>,
pub(crate) spells: Vec<SpellIdx>,
spell_set: FastSet<SpellIdx>,
pub(crate) talents: Vec<Box<str>>,
pub(crate) hero_trees: Vec<Box<str>>,
pub(crate) items: Vec<Box<str>>,
pub(crate) swings: Vec<Box<str>>,
pub(crate) history: Vec<SpellIdx>,
history_set: FastSet<SpellIdx>,
pub(crate) equipment: Vec<Box<str>>,
pub(crate) set_bonuses: Vec<Box<str>>,
pub(crate) units: Vec<Box<str>>,
pub(crate) weapon_imbues: Vec<Box<str>>,
}Expand description
Additional runtime identities that must exist independently of rotation reads.
Fields§
§cooldowns: Vec<SpellIdx>§cooldown_set: FastSet<SpellIdx>§auras: Vec<AuraKey>§aura_set: FastSet<AuraKey>§resources: Vec<ResourceType>§resource_set: FastSet<ResourceType>§spells: Vec<SpellIdx>§spell_set: FastSet<SpellIdx>§talents: Vec<Box<str>>§hero_trees: Vec<Box<str>>§items: Vec<Box<str>>§swings: Vec<Box<str>>§history: Vec<SpellIdx>§history_set: FastSet<SpellIdx>§equipment: Vec<Box<str>>§set_bonuses: Vec<Box<str>>§units: Vec<Box<str>>§weapon_imbues: Vec<Box<str>>Implementations§
Source§impl BufferRequirements
impl BufferRequirements
pub fn new() -> Self
pub fn aura_keys(&self) -> &[AuraKey]
pub fn resource_keys(&self) -> &[ResourceType]
pub fn cooldown(&mut self, key: SpellIdx)
pub fn aura(&mut self, key: AuraKey)
pub fn resource(&mut self, key: ResourceType)
pub fn spell(&mut self, key: SpellIdx)
pub fn history(&mut self, key: SpellIdx)
pub fn talent(&mut self, key: impl Into<Box<str>>)
pub fn hero_tree(&mut self, key: impl Into<Box<str>>)
pub fn item(&mut self, key: impl Into<Box<str>>)
pub fn swing(&mut self, key: impl Into<Box<str>>)
pub fn equipment(&mut self, key: impl Into<Box<str>>)
pub fn set_bonus(&mut self, key: impl Into<Box<str>>)
pub fn unit(&mut self, key: impl Into<Box<str>>)
pub fn weapon_imbue(&mut self, key: impl Into<Box<str>>)
Trait Implementations§
Source§impl Clone for BufferRequirements
impl Clone for BufferRequirements
Source§fn clone(&self) -> BufferRequirements
fn clone(&self) -> BufferRequirements
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 BufferRequirements
impl Debug for BufferRequirements
Source§impl Default for BufferRequirements
impl Default for BufferRequirements
Source§fn default() -> BufferRequirements
fn default() -> BufferRequirements
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BufferRequirements
impl RefUnwindSafe for BufferRequirements
impl Send for BufferRequirements
impl Sync for BufferRequirements
impl Unpin for BufferRequirements
impl UnsafeUnpin for BufferRequirements
impl UnwindSafe for BufferRequirements
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