pub enum TypeEffectiveness {
SuperEffective,
Normal,
NotVeryEffective,
NoEffect,
}
Variants§
Implementations§
Source§impl TypeEffectiveness
impl TypeEffectiveness
pub fn from_effective_array<P>(
attack: &FitnessPokemonType<P>,
defense: &FitnessPokemonType<P>,
) -> TypeEffectivenesswhere
P: PokemonTypeTrait,
pub fn point(&self) -> usize
Trait Implementations§
Source§impl Clone for TypeEffectiveness
impl Clone for TypeEffectiveness
Source§fn clone(&self) -> TypeEffectiveness
fn clone(&self) -> TypeEffectiveness
Returns a copy 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 TypeEffectiveness
impl Debug for TypeEffectiveness
Source§impl PartialEq for TypeEffectiveness
impl PartialEq for TypeEffectiveness
impl Copy for TypeEffectiveness
impl Eq for TypeEffectiveness
impl StructuralPartialEq for TypeEffectiveness
Auto Trait Implementations§
impl Freeze for TypeEffectiveness
impl RefUnwindSafe for TypeEffectiveness
impl Send for TypeEffectiveness
impl Sync for TypeEffectiveness
impl Unpin for TypeEffectiveness
impl UnwindSafe for TypeEffectiveness
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