pub struct AttackWeight(/* private fields */);Expand description
A non-negative finite attack weight. Constructed via Self::new,
which rejects NaN, infinity, and negative values.
Implements Copy, Clone, Debug, PartialEq, and PartialOrd
but NOT Eq or Hash — f64 does not satisfy those by default.
Implementations§
Trait Implementations§
Source§impl Clone for AttackWeight
impl Clone for AttackWeight
Source§fn clone(&self) -> AttackWeight
fn clone(&self) -> AttackWeight
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 AttackWeight
impl Debug for AttackWeight
Source§impl PartialEq for AttackWeight
impl PartialEq for AttackWeight
Source§impl PartialOrd for AttackWeight
impl PartialOrd for AttackWeight
impl Copy for AttackWeight
impl StructuralPartialEq for AttackWeight
Auto Trait Implementations§
impl Freeze for AttackWeight
impl RefUnwindSafe for AttackWeight
impl Send for AttackWeight
impl Sync for AttackWeight
impl Unpin for AttackWeight
impl UnsafeUnpin for AttackWeight
impl UnwindSafe for AttackWeight
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