[][src]Trait diplomacy::geo::Location

pub trait Location: ShortName + Clone + Debug + PartialEq + Eq + Hash {
    type Province: PartialEq;
    fn province(&self) -> &Self::Province;
}

An addressable location in the Diplomacy world. This trait is used during order parsing and mapping to allow for orders that reference regions by name rather than by reference.

Associated Types

Loading content...

Required methods

fn province(&self) -> &Self::Province

Loading content...

Implementors

impl Location for Region[src]

type Province = ProvinceKey

impl Location for RegionKey[src]

type Province = ProvinceKey

Loading content...