pub enum SheetCost {
Slot(SpellSlot),
Feature {
name: String,
amount: u16,
},
}Expand description
What a command spends on a character’s sheet: a spell slot, or uses of a feature.
Variants§
Implementations§
Source§impl SheetCost
impl SheetCost
Sourcepub fn spend(&self) -> CharacterAction
pub fn spend(&self) -> CharacterAction
The action that spends it.
Sourcepub fn give_back(&self) -> CharacterAction
pub fn give_back(&self) -> CharacterAction
The action that gives it back.
Trait Implementations§
impl Eq for SheetCost
impl StructuralPartialEq for SheetCost
Auto Trait Implementations§
impl Freeze for SheetCost
impl RefUnwindSafe for SheetCost
impl Send for SheetCost
impl Sync for SheetCost
impl Unpin for SheetCost
impl UnsafeUnpin for SheetCost
impl UnwindSafe for SheetCost
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.