pub enum EvolutionMethod {
Level,
Trade,
Item,
BattleEnd,
Custom,
}Expand description
Common evolution methods.
This enum is encoded as a single character: L, T, I, B, or C.
Variants§
Level
Evolves on level-up.
Trade
Evolves after being traded.
Item
Evolves on item use outside of battle.
BattleEnd
Evolves after a battle ends, regardless of if a level up occurred.
Custom
Evolves in some other custom way.
Trait Implementations§
Source§impl Clone for EvolutionMethod
impl Clone for EvolutionMethod
Source§fn clone(&self) -> EvolutionMethod
fn clone(&self) -> EvolutionMethod
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 EvolutionMethod
impl Debug for EvolutionMethod
Source§impl<'de> Deserialize<'de> for EvolutionMethod
impl<'de> Deserialize<'de> for EvolutionMethod
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 EvolutionMethod
impl Display for EvolutionMethod
Source§impl FromStr for EvolutionMethod
impl FromStr for EvolutionMethod
Source§impl PartialEq for EvolutionMethod
impl PartialEq for EvolutionMethod
Source§impl Serialize for EvolutionMethod
impl Serialize for EvolutionMethod
impl StructuralPartialEq for EvolutionMethod
Auto Trait Implementations§
impl Freeze for EvolutionMethod
impl RefUnwindSafe for EvolutionMethod
impl Send for EvolutionMethod
impl Sync for EvolutionMethod
impl Unpin for EvolutionMethod
impl UnsafeUnpin for EvolutionMethod
impl UnwindSafe for EvolutionMethod
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