pub struct BattleResult {
pub i: usize,
pub j: usize,
pub wij: f64,
pub wji: f64,
}Expand description
Represents the outcome of battles between two players. wij is the number of wins of i over j, wji is the number of wins of j over i. The scale matter, since we have the normal prior. Higher number means higher observance.
Fields§
§i: usize§j: usize§wij: f64Number of wins of i over j
wji: f64Number of wins of j over i
Trait Implementations§
Source§impl Clone for BattleResult
impl Clone for BattleResult
Source§fn clone(&self) -> BattleResult
fn clone(&self) -> BattleResult
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 BattleResult
impl Debug for BattleResult
impl Copy for BattleResult
Auto Trait Implementations§
impl Freeze for BattleResult
impl RefUnwindSafe for BattleResult
impl Send for BattleResult
impl Sync for BattleResult
impl Unpin for BattleResult
impl UnwindSafe for BattleResult
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