pub struct ScheduledSpellCatalog {
pub(crate) program: u64,
pub(crate) spell_ids: Box<[SpellIdx]>,
}Fields§
§program: u64§spell_ids: Box<[SpellIdx]>Implementations§
Source§impl ScheduledSpellCatalog
impl ScheduledSpellCatalog
pub fn new(spell_ids: impl IntoIterator<Item = SpellIdx>) -> Self
pub fn bind(&self, local: u16) -> Option<ScheduledSpellBinding>
pub fn bind_spell_id(&self, spell_id: SpellIdx) -> Option<ScheduledSpellBinding>
pub fn validate(&self, binding: ScheduledSpellBinding) -> Option<u16>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScheduledSpellCatalog
impl RefUnwindSafe for ScheduledSpellCatalog
impl Send for ScheduledSpellCatalog
impl Sync for ScheduledSpellCatalog
impl Unpin for ScheduledSpellCatalog
impl UnsafeUnpin for ScheduledSpellCatalog
impl UnwindSafe for ScheduledSpellCatalog
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