pub enum ItemResult {
Used,
NotUsable,
NotOwned,
NoEffect,
}Expand description
Outcome of attempting to apply an item to a monster.
Variants§
Used
Item was consumed and its effect applied successfully.
NotUsable
The item cannot be used in the current context (e.g., battle-only item used outside battle).
NotOwned
The player’s bag does not contain this item.
NoEffect
Item was applicable but produced no effect (e.g., healing a fully-healed monster).
Trait Implementations§
Source§impl Clone for ItemResult
impl Clone for ItemResult
Source§fn clone(&self) -> ItemResult
fn clone(&self) -> ItemResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ItemResult
Source§impl Debug for ItemResult
impl Debug for ItemResult
impl Eq for ItemResult
Source§impl PartialEq for ItemResult
impl PartialEq for ItemResult
impl StructuralPartialEq for ItemResult
Auto Trait Implementations§
impl Freeze for ItemResult
impl RefUnwindSafe for ItemResult
impl Send for ItemResult
impl Sync for ItemResult
impl Unpin for ItemResult
impl UnsafeUnpin for ItemResult
impl UnwindSafe for ItemResult
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