#[repr(u8)]pub enum PokemonType {
Show 20 variants
NORMAL = 0,
FIRE = 1,
WATER = 2,
ELECTRIC = 3,
GRASS = 4,
ICE = 5,
FIGHTING = 6,
POISON = 7,
GROUND = 8,
FLYING = 9,
PSYCHIC = 10,
BUG = 11,
ROCK = 12,
GHOST = 13,
DRAGON = 14,
DARK = 15,
STEEL = 16,
FAIRY = 17,
STELLAR = 18,
TYPELESS = 19,
}Variants§
NORMAL = 0
FIRE = 1
WATER = 2
ELECTRIC = 3
GRASS = 4
ICE = 5
FIGHTING = 6
POISON = 7
GROUND = 8
FLYING = 9
PSYCHIC = 10
BUG = 11
ROCK = 12
GHOST = 13
DRAGON = 14
DARK = 15
STEEL = 16
FAIRY = 17
STELLAR = 18
TYPELESS = 19
Trait Implementations§
Source§impl Clone for PokemonType
impl Clone for PokemonType
Source§fn clone(&self) -> PokemonType
fn clone(&self) -> PokemonType
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 PokemonType
impl Debug for PokemonType
Source§impl Display for PokemonType
impl Display for PokemonType
Source§impl From<u8> for PokemonType
impl From<u8> for PokemonType
Source§fn from(value: u8) -> PokemonType
fn from(value: u8) -> PokemonType
Converts to this type from the input type.
Source§impl FromStr for PokemonType
impl FromStr for PokemonType
Source§impl Into<u8> for PokemonType
impl Into<u8> 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