pub struct ScriptMove {
pub category: MoveCategory,
pub type_: PokemonType,
pub accuracy: Option<Accuracy>,
pub crit_rate: INT,
}
Fields§
§category: MoveCategory
§type_: PokemonType
§accuracy: Option<Accuracy>
§crit_rate: INT
Implementations§
Source§impl ScriptMove
impl ScriptMove
pub fn new(m: &Move) -> Self
pub fn get_category(&mut self) -> MoveCategory
pub fn get_type(&mut self) -> PokemonType
pub fn get_crit_rate(&mut self) -> INT
Trait Implementations§
Source§impl Clone for ScriptMove
impl Clone for ScriptMove
Source§fn clone(&self) -> ScriptMove
fn clone(&self) -> ScriptMove
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 moreimpl Copy for ScriptMove
Auto Trait Implementations§
impl Freeze for ScriptMove
impl RefUnwindSafe for ScriptMove
impl Send for ScriptMove
impl Sync for ScriptMove
impl Unpin for ScriptMove
impl UnwindSafe for ScriptMove
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