struct UnitCounts {
map: [BTreeMap<UnitType, usize>; 2],
}Fields§
§map: [BTreeMap<UnitType, usize>; 2]Implementations§
Source§impl UnitCounts
impl UnitCounts
fn from_fight(fight: &Fight) -> Self
fn get(&self, unit_type: UnitType, owner: PlayerInMatchup) -> usize
Auto Trait Implementations§
impl Freeze for UnitCounts
impl RefUnwindSafe for UnitCounts
impl Send for UnitCounts
impl Sync for UnitCounts
impl Unpin for UnitCounts
impl UnwindSafe for UnitCounts
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