pub enum LastUsedMove {
Move(PokemonMoveIndex),
Switch(PokemonIndex),
None,
}Variants§
Implementations§
Source§impl LastUsedMove
impl LastUsedMove
pub fn serialize(&self) -> String
pub fn deserialize(serialized: &str) -> LastUsedMove
Trait Implementations§
Source§impl Clone for LastUsedMove
impl Clone for LastUsedMove
Source§fn clone(&self) -> LastUsedMove
fn clone(&self) -> LastUsedMove
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 LastUsedMove
impl Debug for LastUsedMove
Source§impl PartialEq for LastUsedMove
impl PartialEq for LastUsedMove
impl Copy for LastUsedMove
impl Eq for LastUsedMove
impl StructuralPartialEq for LastUsedMove
Auto Trait Implementations§
impl Freeze for LastUsedMove
impl RefUnwindSafe for LastUsedMove
impl Send for LastUsedMove
impl Sync for LastUsedMove
impl Unpin for LastUsedMove
impl UnwindSafe for LastUsedMove
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