[−][src]Struct diplomacy::judge::Outcome
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,
A: RefUnwindSafe,
impl<'a, A> Send for Outcome<'a, A> where
A: Send,
A: Send,
impl<'a, A> Sync for Outcome<'a, A> where
A: Sync,
A: Sync,
impl<'a, A> Unpin for Outcome<'a, A> where
A: Unpin,
A: Unpin,
impl<'a, A> UnwindSafe for Outcome<'a, A> where
A: UnwindSafe,
A: UnwindSafe,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,