pub enum ConsumableWhenAst {
Despawn,
ReplaceInventory {
replacement: String,
},
ReplaceCurrentRoom {
replacement: String,
},
}Expand description
Behavior when a consumable item is depleted.
Variants§
Trait Implementations§
Source§impl Clone for ConsumableWhenAst
impl Clone for ConsumableWhenAst
Source§fn clone(&self) -> ConsumableWhenAst
fn clone(&self) -> ConsumableWhenAst
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 ConsumableWhenAst
impl Debug for ConsumableWhenAst
Source§impl PartialEq for ConsumableWhenAst
impl PartialEq for ConsumableWhenAst
impl StructuralPartialEq for ConsumableWhenAst
Auto Trait Implementations§
impl Freeze for ConsumableWhenAst
impl RefUnwindSafe for ConsumableWhenAst
impl Send for ConsumableWhenAst
impl Sync for ConsumableWhenAst
impl Unpin for ConsumableWhenAst
impl UnwindSafe for ConsumableWhenAst
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