pub struct StatBoosts {
pub attack: i8,
pub defense: i8,
pub special_attack: i8,
pub special_defense: i8,
pub speed: i8,
pub accuracy: i8,
}Fields§
§attack: i8§defense: i8§special_attack: i8§special_defense: i8§speed: i8§accuracy: i8Implementations§
Source§impl StatBoosts
impl StatBoosts
pub fn get_as_pokemon_boostable(&self) -> [(PokemonBoostableStat, i8); 6]
Trait Implementations§
Source§impl Clone for StatBoosts
impl Clone for StatBoosts
Source§fn clone(&self) -> StatBoosts
fn clone(&self) -> StatBoosts
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 StatBoosts
impl Debug for StatBoosts
Source§impl Default for StatBoosts
impl Default for StatBoosts
Source§fn default() -> StatBoosts
fn default() -> StatBoosts
Returns the “default value” for a type. Read more
Source§impl PartialEq for StatBoosts
impl PartialEq for StatBoosts
impl StructuralPartialEq for StatBoosts
Auto Trait Implementations§
impl Freeze for StatBoosts
impl RefUnwindSafe for StatBoosts
impl Send for StatBoosts
impl Sync for StatBoosts
impl Unpin for StatBoosts
impl UnwindSafe for StatBoosts
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