pub struct Attack {
pub num_rolls: usize,
pub modifier: i32,
pub effects: Vec<AttackEffect>,
}
Fields§
§num_rolls: usize
§modifier: i32
§effects: Vec<AttackEffect>
Implementations§
Source§impl Attack
impl Attack
pub fn attack_roll(&self, rng: &mut ThreadRng) -> i32
pub fn attack_damage(&self, rng: &mut ThreadRng) -> AttackDamage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attack
impl RefUnwindSafe for Attack
impl Send for Attack
impl Sync for Attack
impl Unpin for Attack
impl UnwindSafe for Attack
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