pub struct PartyFull<P: MonsterProvider>(pub MonsterInstance<P>);Expand description
Error returned when adding to a full Party or StorageBox.
Carries the rejected monster back to the caller so nothing is lost.
Tuple Fields§
§0: MonsterInstance<P>Trait Implementations§
impl<P: Eq + MonsterProvider> Eq for PartyFull<P>
impl<P: PartialEq + MonsterProvider> StructuralPartialEq for PartyFull<P>
Auto Trait Implementations§
impl<P> Freeze for PartyFull<P>where
<P as MonsterProvider>::SpeciesId: Freeze,
<P as MonsterProvider>::Genetics: Freeze,
<P as MonsterProvider>::Training: Freeze,
impl<P> RefUnwindSafe for PartyFull<P>where
<P as MonsterProvider>::SpeciesId: RefUnwindSafe,
<P as MonsterProvider>::Genetics: RefUnwindSafe,
<P as MonsterProvider>::Training: RefUnwindSafe,
<P as MonsterProvider>::MoveId: RefUnwindSafe,
<P as MonsterProvider>::Stat: RefUnwindSafe,
impl<P> Send for PartyFull<P>where
<P as MonsterProvider>::SpeciesId: Send,
<P as MonsterProvider>::Genetics: Send,
<P as MonsterProvider>::Training: Send,
<P as MonsterProvider>::MoveId: Send,
<P as MonsterProvider>::Stat: Send,
impl<P> Sync for PartyFull<P>where
<P as MonsterProvider>::SpeciesId: Sync,
<P as MonsterProvider>::Genetics: Sync,
<P as MonsterProvider>::Training: Sync,
<P as MonsterProvider>::MoveId: Sync,
<P as MonsterProvider>::Stat: Sync,
impl<P> Unpin for PartyFull<P>where
<P as MonsterProvider>::SpeciesId: Unpin,
<P as MonsterProvider>::Genetics: Unpin,
<P as MonsterProvider>::Training: Unpin,
<P as MonsterProvider>::MoveId: Unpin,
<P as MonsterProvider>::Stat: Unpin,
impl<P> UnsafeUnpin for PartyFull<P>where
<P as MonsterProvider>::SpeciesId: UnsafeUnpin,
<P as MonsterProvider>::Genetics: UnsafeUnpin,
<P as MonsterProvider>::Training: UnsafeUnpin,
impl<P> UnwindSafe for PartyFull<P>where
<P as MonsterProvider>::SpeciesId: UnwindSafe,
<P as MonsterProvider>::Genetics: UnwindSafe,
<P as MonsterProvider>::Training: UnwindSafe,
<P as MonsterProvider>::MoveId: UnwindSafe,
<P as MonsterProvider>::Stat: UnwindSafe,
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