pub struct MapState {
pub units: HashMap<String, Unit>,
pub ownership: HashMap<ProvinceAbbr, String>,
}Expand description
Stores the units present on a diplomacy board.
Fields§
§units: HashMap<String, Unit>§ownership: HashMap<ProvinceAbbr, String>Tracks SC ownership. This field is not used in the core adjudicator; it is included for convenience.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapState
impl<'de> Deserialize<'de> for MapState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MapState
impl RefUnwindSafe for MapState
impl Send for MapState
impl Sync for MapState
impl Unpin for MapState
impl UnwindSafe for MapState
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