[][src]Enum diplomacy::judge::retreat::DestStatus

pub enum DestStatus {
    Available,
    Unreachable,
    BlockedByDislodger,
    Occupied,
    Contested,
}

Variants

Available

The region is a viable retreat destination.

Unreachable

The retreating unit cannot reach the destination, due to the lack of a passable border.

This status covers three cases:

  1. There is a border, but the unit cannot cross it due to terrain incompatibility.
  2. There is no border with the specified destination; it is not adjacent to the retreating unit.
  3. The specified destination does not exist on the map.
BlockedByDislodger

The unit that dislodged the retreating unit launched a direct assault from this region's parent province.

Occupied

There is a unit in the destination province.

Contested

The region is vacant, but during the main phase the province was the site of a stalemate. Units cannot retreat into stalemate territory.

Trait Implementations

impl Clone for DestStatus[src]

impl Copy for DestStatus[src]

impl Debug for DestStatus[src]

impl Eq for DestStatus[src]

impl<'_> PartialEq<DestStatus> for OrderOutcome<'_>[src]

Most DestStatus values block a retreat-phase move order from succeeding or exerting influence on the move destination. These values can appear in the InvalidDestination variant of OrderOutcome. Note that DestStatus::Available will never equal an order outcome.

impl PartialEq<DestStatus> for DestStatus[src]

impl<'_> PartialEq<OrderOutcome<'_>> for DestStatus[src]

impl StructuralEq for DestStatus[src]

impl StructuralPartialEq for DestStatus[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.