Enum diplomacy::judge::retreat::DestStatus
source · 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:
- There is a border, but the unit cannot cross it due to terrain incompatibility.
- There is no border with the specified destination; it is not adjacent to the retreating unit.
- 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§
source§impl Clone for DestStatus
impl Clone for DestStatus
source§fn clone(&self) -> DestStatus
fn clone(&self) -> DestStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DestStatus
impl Debug for DestStatus
source§impl PartialEq<DestStatus> for OrderOutcome<'_>
impl PartialEq<DestStatus> for OrderOutcome<'_>
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.
source§fn eq(&self, other: &DestStatus) -> bool
fn eq(&self, other: &DestStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<OrderOutcome<'_>> for DestStatus
impl PartialEq<OrderOutcome<'_>> for DestStatus
source§fn eq(&self, other: &OrderOutcome<'_>) -> bool
fn eq(&self, other: &OrderOutcome<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for DestStatus
impl PartialEq for DestStatus
source§fn eq(&self, other: &DestStatus) -> bool
fn eq(&self, other: &DestStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DestStatus
impl Eq for DestStatus
impl StructuralPartialEq for DestStatus
Auto Trait Implementations§
impl Freeze for DestStatus
impl RefUnwindSafe for DestStatus
impl Send for DestStatus
impl Sync for DestStatus
impl Unpin for DestStatus
impl UnwindSafe for DestStatus
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<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.