pub enum BattleEnd {
PlayerWin,
PlayerLoss,
Fled,
Caught,
}Expand description
How a battle ended, if it ended this turn.
Variants§
PlayerWin
All opponent battlers fainted.
PlayerLoss
All player battlers fainted.
Fled
The player (or opponent) fled.
Caught
A wild monster was caught.
Trait Implementations§
impl Copy for BattleEnd
impl Eq for BattleEnd
impl StructuralPartialEq for BattleEnd
Auto Trait Implementations§
impl Freeze for BattleEnd
impl RefUnwindSafe for BattleEnd
impl Send for BattleEnd
impl Sync for BattleEnd
impl Unpin for BattleEnd
impl UnsafeUnpin for BattleEnd
impl UnwindSafe for BattleEnd
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