pub enum UnitType {
Army,
Fleet,
}Expand description
The type of a military unit. Armies are convoyable land-based units; fleets are sea-going units which are able to convoy armies.
Variants§
Army
A convoyable land-based unit which can traverse inland and coastal terrain.
Fleet
A sea-based unit which can traverse sea and coastal terrain.
Trait Implementations§
Source§impl Ord for UnitType
impl Ord for UnitType
Source§impl PartialOrd for UnitType
impl PartialOrd for UnitType
Source§impl ShortName for UnitType
impl ShortName for UnitType
Source§fn short_name(&self) -> Cow<'_, str>
fn short_name(&self) -> Cow<'_, str>
This method returns the short display name of the object.
impl Copy for UnitType
impl Eq for UnitType
impl StructuralPartialEq for UnitType
Auto Trait Implementations§
impl Freeze for UnitType
impl RefUnwindSafe for UnitType
impl Send for UnitType
impl Sync for UnitType
impl Unpin for UnitType
impl UnsafeUnpin for UnitType
impl UnwindSafe for UnitType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.