[−][src]Struct genie_dat::Civilization
Information about a civilization.
Implementations
impl Civilization
[src]
pub fn name(&self) -> &str
[src]
Get the name of this civilization.
pub fn read_from(input: impl Read, version: GameVersion) -> Result<Self>
[src]
Read civilization data from an input stream.
pub fn write_to(&self, output: impl Write, version: GameVersion) -> Result<()>
[src]
Write civilization data to an output stream.
pub fn get_unit_type(&self, id: impl Into<UnitTypeID>) -> Option<&UnitType>
[src]
Get a unit type by its ID.
Trait Implementations
impl Clone for Civilization
[src]
fn clone(&self) -> Civilization
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Civilization
[src]
impl Default for Civilization
[src]
fn default() -> Civilization
[src]
Auto Trait Implementations
impl RefUnwindSafe for Civilization
impl Send for Civilization
impl Sync for Civilization
impl Unpin for Civilization
impl UnwindSafe for Civilization
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,