pub enum PokemonType {
Show 19 variants
Normal,
Fire,
Water,
Electric,
Grass,
Ice,
Fighting,
Poison,
Ground,
Flying,
Psychic,
Bug,
Rock,
Ghost,
Dragon,
Dark,
Steel,
Fairy,
Typeless,
}Variants§
Normal
Fire
Water
Electric
Grass
Ice
Fighting
Poison
Ground
Flying
Psychic
Bug
Rock
Ghost
Dragon
Dark
Steel
Fairy
Typeless
Implementations§
Source§impl PokemonType
impl PokemonType
pub fn serialize(&self) -> String
pub fn deserialize(input: &str) -> PokemonType
Trait Implementations§
Source§impl Clone for PokemonType
impl Clone for PokemonType
Source§fn clone(&self) -> PokemonType
fn clone(&self) -> PokemonType
Returns a copy 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 PokemonType
impl Debug for PokemonType
Source§impl PartialEq for PokemonType
impl PartialEq for PokemonType
impl Copy for PokemonType
impl StructuralPartialEq for PokemonType
Auto Trait Implementations§
impl Freeze for PokemonType
impl RefUnwindSafe for PokemonType
impl Send for PokemonType
impl Sync for PokemonType
impl Unpin for PokemonType
impl UnwindSafe for PokemonType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)