[][src]Struct diplomacy::judge::ResolverState

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

Implementations

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

pub fn with_adjudicator(adjudicator: A) -> Self[src]

Create a new resolver for a given rulebook.

pub fn adjudicator(&self) -> &A[src]

pub fn resolve(
    &mut self,
    context: &'a ResolverContext<'a>,
    order: &'a MappedMainOrder
) -> OrderState
[src]

Resolve whether an order succeeds or fails, possibly updating the resolver's state in the process.

Trait Implementations

impl<'a, A: Clone> Clone for ResolverState<'a, A>[src]

impl<'a, A: Debug> Debug for ResolverState<'a, A>[src]

impl<'a, A: Eq> Eq for ResolverState<'a, A>[src]

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

impl<'a, A: PartialEq> PartialEq<ResolverState<'a, A>> for ResolverState<'a, A>[src]

impl<'a, A> StructuralEq for ResolverState<'a, A>[src]

impl<'a, A> StructuralPartialEq for ResolverState<'a, A>[src]

Auto Trait Implementations

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

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

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

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

impl<'a, A> UnwindSafe for ResolverState<'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> 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.