#[repr(u8)]pub enum PokemonIndex {
P0 = 0,
P1 = 1,
P2 = 2,
P3 = 3,
P4 = 4,
P5 = 5,
}Variants§
Implementations§
Source§impl PokemonIndex
impl PokemonIndex
pub fn serialize(&self) -> String
pub fn deserialize(serialized: &str) -> PokemonIndex
Trait Implementations§
Source§impl Clone for PokemonIndex
impl Clone for PokemonIndex
Source§fn clone(&self) -> PokemonIndex
fn clone(&self) -> PokemonIndex
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 PokemonIndex
impl Debug for PokemonIndex
Source§impl Hash for PokemonIndex
impl Hash for PokemonIndex
Source§impl Index<&PokemonIndex> for SidePokemon
impl Index<&PokemonIndex> for SidePokemon
Source§impl Index<PokemonIndex> for SidePokemon
impl Index<PokemonIndex> for SidePokemon
Source§impl IndexMut<PokemonIndex> for SidePokemon
impl IndexMut<PokemonIndex> for SidePokemon
Source§impl PartialEq for PokemonIndex
impl PartialEq for PokemonIndex
impl Copy for PokemonIndex
impl Eq for PokemonIndex
impl StructuralPartialEq for PokemonIndex
Auto Trait Implementations§
impl Freeze for PokemonIndex
impl RefUnwindSafe for PokemonIndex
impl Send for PokemonIndex
impl Sync for PokemonIndex
impl Unpin for PokemonIndex
impl UnwindSafe for PokemonIndex
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