pub enum ItemTarget {
Party,
Active,
Foe,
IsolatedFoe,
}Expand description
The acceptable target of an item.
Variants§
Party
A Mon in the player’s party.
Active
The active Mon that the player is controlling.
Foe
A foe on the battle field.
IsolatedFoe
An isolated foe on the battle field.
Implementations§
Source§impl ItemTarget
impl ItemTarget
Trait Implementations§
Source§impl Clone for ItemTarget
impl Clone for ItemTarget
Source§fn clone(&self) -> ItemTarget
fn clone(&self) -> ItemTarget
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 ItemTarget
impl Debug for ItemTarget
Source§impl<'de> Deserialize<'de> for ItemTarget
impl<'de> Deserialize<'de> for ItemTarget
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ItemTarget
impl Display for ItemTarget
Source§impl FromStr for ItemTarget
impl FromStr for ItemTarget
Source§impl PartialEq for ItemTarget
impl PartialEq for ItemTarget
Source§impl Serialize for ItemTarget
impl Serialize for ItemTarget
impl Copy for ItemTarget
impl Eq for ItemTarget
impl StructuralPartialEq for ItemTarget
Auto Trait Implementations§
impl Freeze for ItemTarget
impl RefUnwindSafe for ItemTarget
impl Send for ItemTarget
impl Sync for ItemTarget
impl Unpin for ItemTarget
impl UnsafeUnpin for ItemTarget
impl UnwindSafe for ItemTarget
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.