[][src]Enum diplomacy::UnitType

pub enum UnitType {
    Army,
    Fleet,
}

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

impl Clone for UnitType[src]

impl Copy for UnitType[src]

impl Debug for UnitType[src]

impl Eq for UnitType[src]

impl FromStr for UnitType[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for UnitType[src]

impl Ord for UnitType[src]

impl PartialEq<UnitType> for UnitType[src]

impl PartialOrd<UnitType> for UnitType[src]

impl ShortName for UnitType[src]

impl StructuralEq for UnitType[src]

impl StructuralPartialEq for UnitType[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.