pub struct ConsumableAst {
pub uses_left: usize,
pub consume_on: Vec<ItemAbilityAst>,
pub when_consumed: ConsumableWhenAst,
}Expand description
Consumable configuration attached to an item.
Fields§
§uses_left: usize§consume_on: Vec<ItemAbilityAst>§when_consumed: ConsumableWhenAstTrait Implementations§
Source§impl Clone for ConsumableAst
impl Clone for ConsumableAst
Source§fn clone(&self) -> ConsumableAst
fn clone(&self) -> ConsumableAst
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 ConsumableAst
impl Debug for ConsumableAst
Source§impl PartialEq for ConsumableAst
impl PartialEq for ConsumableAst
impl StructuralPartialEq for ConsumableAst
Auto Trait Implementations§
impl Freeze for ConsumableAst
impl RefUnwindSafe for ConsumableAst
impl Send for ConsumableAst
impl Sync for ConsumableAst
impl Unpin for ConsumableAst
impl UnwindSafe for ConsumableAst
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