[][src]Struct eu4save::query::Query

pub struct Query { /* fields omitted */ }

Implementations

impl Query[src]

pub fn from_save(save: Eu4Save) -> Self[src]

pub fn save(&self) -> &Eu4Save[src]

pub fn players(&self) -> &HashSet<String>[src]

pub fn player_countries(&self) -> &HashSet<CountryTag>[src]

pub fn starting_country(&self) -> Option<&CountryTag>[src]

pub fn country_tag_hex_color(&self, country_tag: &CountryTag) -> Option<String>[src]

pub fn country_color_to_hex(&self, country: &Country) -> String[src]

pub fn filter_countries<P: AsRef<str>>(
    &self,
    query: &[CountryQuery],
    includes: &[P],
    excludes: &[P]
) -> HashSet<CountryTag>
[src]

pub fn annual_ledgers<P: AsRef<str>>(
    &self,
    query: &[CountryQuery],
    includes: &[P],
    excludes: &[P]
) -> AnnualLedgers
[src]

pub fn country_income_breakdown(&self, country: &Country) -> CountryIncomeLedger[src]

pub fn countries_income_breakdown(
    &self
) -> HashMap<CountryTag, CountryIncomeLedger>
[src]

pub fn country_expense_breakdown(
    &self,
    country: &Country
) -> CountryExpenseLedger
[src]

pub fn country_total_expense_breakdown(
    &self,
    country: &Country
) -> CountryExpenseLedger
[src]

pub fn country_mana_breakdown(&self, country: &Country) -> CountryManaUsage[src]

pub fn built_buildings(&self) -> &HashSet<String>[src]

Return all unique buildings in the world that are built

pub fn province_building_history<'a>(
    &'a self,
    province: &'a Province
) -> Vec<BuildingEvent<'_>>
[src]

Trait Implementations

impl Debug for Query[src]

Auto Trait Implementations

impl RefUnwindSafe for Query

impl Send for Query

impl Sync for Query

impl Unpin for Query

impl UnwindSafe for Query

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.