[][src]Struct diplomacy::judge::Outcome

pub struct Outcome<'a, A> { /* fields omitted */ }

Contains information about the outcome of a turn, used for reporting back to players and for setting up the next turn.

Implementations

impl<'a, A: Adjudicate> Outcome<'a, A>[src]

pub fn orders(&self) -> &[MappedMainOrder][src]

The orders that participated in resolution, in the order they were provided.

pub fn moved(&self) -> Vec<&MappedMainOrder>[src]

Get successful move orders from the phase.

pub fn get(&'a self, order: &'a MappedMainOrder) -> Option<&'a OrderOutcome<'a>>[src]

pub fn to_retreat_start(&'a self) -> Start<'a>[src]

Calculate retreat phase starting data based on this main-phase outcome.

Trait Implementations

impl<'a, A: Adjudicate> Display for Outcome<'a, A>[src]

impl<'_, A: Adjudicate> From<Outcome<'_, A>> for HashMap<MappedMainOrder, OrderState>[src]

Auto Trait Implementations

impl<'a, A> RefUnwindSafe for Outcome<'a, A> where
    A: RefUnwindSafe

impl<'a, A> Send for Outcome<'a, A> where
    A: Send

impl<'a, A> Sync for Outcome<'a, A> where
    A: Sync

impl<'a, A> Unpin for Outcome<'a, A> where
    A: Unpin

impl<'a, A> UnwindSafe for Outcome<'a, A> where
    A: UnwindSafe

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> ToString for T where
    T: Display + ?Sized
[src]

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.