pub enum ConditionType {
BuiltIn,
Condition,
Weather,
Status,
Type,
Volatile,
ZPower,
}Expand description
The type of a condition.
Variants§
BuiltIn
A condition that is built into the battle engine.
Condition
An ordinary condition that can be applied to anything in a battle.
Weather
Weather, which is applied to the entire battlefield.
Status
Status, which is applied to a single Mon for a finite amount of time.
Type
Type, which is applied to a single Mon for a finite amount of time while the user has the type.
Volatile
Volatile, which is applied to a single Mon for a finite amount of time.
ZPower
Z-Power, which is applied to the user of a Z-Move.
Trait Implementations§
Source§impl Clone for ConditionType
impl Clone for ConditionType
Source§fn clone(&self) -> ConditionType
fn clone(&self) -> ConditionType
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 ConditionType
impl Debug for ConditionType
Source§impl<'de> Deserialize<'de> for ConditionType
impl<'de> Deserialize<'de> for ConditionType
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 ConditionType
impl Display for ConditionType
Source§impl FromStr for ConditionType
impl FromStr for ConditionType
Source§impl PartialEq for ConditionType
impl PartialEq for ConditionType
Source§impl Serialize for ConditionType
impl Serialize for ConditionType
impl Eq for ConditionType
impl StructuralPartialEq for ConditionType
Auto Trait Implementations§
impl Freeze for ConditionType
impl RefUnwindSafe for ConditionType
impl Send for ConditionType
impl Sync for ConditionType
impl Unpin for ConditionType
impl UnsafeUnpin for ConditionType
impl UnwindSafe for ConditionType
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.