Struct arelith::item::WeaponBase
source · pub struct WeaponBase {
pub name: String,
pub size: SizeCategory,
pub damage: Dice,
pub threat_range: i32,
pub crit_multiplier: i32,
pub damage_type: Vec<DamageType>,
}Fields§
§name: String§size: SizeCategory§damage: Dice§threat_range: i32§crit_multiplier: i32§damage_type: Vec<DamageType>Implementations§
source§impl WeaponBase
impl WeaponBase
pub fn new( name: String, size: SizeCategory, damage: Dice, threat_range: i32, crit_multiplier: i32, damage_type: Vec<DamageType> ) -> Self
Trait Implementations§
source§impl Clone for WeaponBase
impl Clone for WeaponBase
source§fn clone(&self) -> WeaponBase
fn clone(&self) -> WeaponBase
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 Default for WeaponBase
impl Default for WeaponBase
source§fn default() -> WeaponBase
fn default() -> WeaponBase
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for WeaponBase
impl Send for WeaponBase
impl Sync for WeaponBase
impl Unpin for WeaponBase
impl UnwindSafe for WeaponBase
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