[−][src]Struct diplomacy::judge::ResolverState
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]
&mut self,
context: &'a ResolverContext<'a>,
order: &'a MappedMainOrder
) -> OrderState
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]
fn clone(&self) -> ResolverState<'a, A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(state: ResolverState<'a, A>) -> Self
[src]
impl<'a, A: PartialEq> PartialEq<ResolverState<'a, A>> for ResolverState<'a, A>
[src]
fn eq(&self, other: &ResolverState<'a, A>) -> bool
[src]
fn ne(&self, other: &ResolverState<'a, A>) -> bool
[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,
A: RefUnwindSafe,
impl<'a, A> Send for ResolverState<'a, A> where
A: Send,
A: Send,
impl<'a, A> Sync for ResolverState<'a, A> where
A: Sync,
A: Sync,
impl<'a, A> Unpin for ResolverState<'a, A> where
A: Unpin,
A: Unpin,
impl<'a, A> UnwindSafe for ResolverState<'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> 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>,