Struct eu4save::TagResolver [−][src]
The tag resolver is important to answering questions like “where are they now?” when looking at historic events like province changes or wars. When countries tag switch the tag resolver is able to connect historic events to country’s current selves. For instance in a TYR -> IRE -> GBR game, the provinces and wars gained while playing as TYR should still be aggregated under the current GBR tag.
Implementations
impl TagResolver
[src]
pub fn create(nation_events: &[NationEvents]) -> Self
[src]
pub fn resolve(&self, tag: CountryTag, date: Eu4Date) -> CountryTag
[src]
Given a date and tag associated with the date, return the current tag where the argument is stored.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TagResolver
impl Send for TagResolver
impl Sync for TagResolver
impl Unpin for TagResolver
impl UnwindSafe for TagResolver
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,
pub 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.
pub 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>,