[−][src]Enum diplomacy::judge::retreat::OrderOutcome
The outcome of a specific retreat phase order.
Variants
Prevented(&'a MappedRetreatOrder)
The order was prevented by one or more other retreat orders.
InvalidDestination(DestStatus)
The order destination was invalid. The DestStatus
provides information on why
the destination was invalid.
The order was issued to a region that does not contain a retreating unit.
The region may be vacant, or may contain a unit that was not dislodged.
The unit successfully retreats to a new region
The unit was ordered to disband and did so.
Implementations
impl<'_> OrderOutcome<'_>
[src]
pub fn did_disband(&self) -> bool
[src]
Check if the ordered unit disbanded at the conclusion of the retreat phase.
Trait Implementations
impl<'a> Clone for OrderOutcome<'a>
[src]
fn clone(&self) -> OrderOutcome<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for OrderOutcome<'a>
[src]
impl<'a> Eq for OrderOutcome<'a>
[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<OrderOutcome<'_>> for DestStatus
[src]
fn eq(&self, other: &OrderOutcome) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<OrderOutcome<'a>> for OrderOutcome<'a>
[src]
fn eq(&self, other: &OrderOutcome<'a>) -> bool
[src]
fn ne(&self, other: &OrderOutcome<'a>) -> bool
[src]
impl<'a> StructuralEq for OrderOutcome<'a>
[src]
impl<'a> StructuralPartialEq for OrderOutcome<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for OrderOutcome<'a>
impl<'a> Send for OrderOutcome<'a>
impl<'a> Sync for OrderOutcome<'a>
impl<'a> Unpin for OrderOutcome<'a>
impl<'a> UnwindSafe for OrderOutcome<'a>
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>,