[−][src]Struct eu4save::query::Query
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]
&self,
query: &[CountryQuery],
includes: &[P],
excludes: &[P]
) -> HashSet<CountryTag>
pub fn annual_ledgers<P: AsRef<str>>(
&self,
query: &[CountryQuery],
includes: &[P],
excludes: &[P]
) -> AnnualLedgers
[src]
&self,
query: &[CountryQuery],
includes: &[P],
excludes: &[P]
) -> AnnualLedgers
pub fn country_income_breakdown(&self, country: &Country) -> CountryIncomeLedger
[src]
pub fn countries_income_breakdown(
&self
) -> HashMap<CountryTag, CountryIncomeLedger>
[src]
&self
) -> HashMap<CountryTag, CountryIncomeLedger>
pub fn country_expense_breakdown(
&self,
country: &Country
) -> CountryExpenseLedger
[src]
&self,
country: &Country
) -> CountryExpenseLedger
pub fn country_total_expense_breakdown(
&self,
country: &Country
) -> CountryExpenseLedger
[src]
&self,
country: &Country
) -> CountryExpenseLedger
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]
&'a self,
province: &'a Province
) -> Vec<BuildingEvent<'_>>
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,