Skip to main content

Misere

Struct Misere 

Source
pub struct Misere<'a, G> {
    game: &'a mut G,
}

Fields§

§game: &'a mut G

Implementations§

Source§

impl<'a, 'g, G> Misere<'a, ImpartialGraph<'g, G>>
where G: Graph + VertexMap<Option<usize>>,

Source

pub fn outcome( self, ) -> GameAnalysis<'a, ImpartialGraph<'g, G>, G::Vertex, GameOutcome, true>

Source§

impl<'a, S, L, F, I> Misere<'a, Impartial<S, F>>
where S: Clone + Eq + Hash, F: FnMut(&S) -> I, I: IntoIterator<Item = Neighbor<S, L>>,

Source

pub fn outcome(self) -> GameAnalysis<'a, Impartial<S, F>, S, GameOutcome, true>

Source§

impl<'a, S, L, FL, FR, IL, IR> Misere<'a, Partisan<S, FL, FR>>
where S: Clone + Eq + Hash, FL: FnMut(&S) -> IL, FR: FnMut(&S) -> IR, IL: IntoIterator<Item = Neighbor<S, L>>, IR: IntoIterator<Item = Neighbor<S, L>>,

Source

pub fn outcome( self, ) -> GameAnalysis<'a, Partisan<S, FL, FR>, S, PartisanOutcome, true>

Source§

impl<'a, G> Misere<'a, G>

Source

pub fn sum(self) -> GameSum<'a, G, true>

Auto Trait Implementations§

§

impl<'a, G> !UnwindSafe for Misere<'a, G>

§

impl<'a, G> Forget for Misere<'a, G>

§

impl<'a, G> Freeze for Misere<'a, G>

§

impl<'a, G> Move for Misere<'a, G>

§

impl<'a, G> RefUnwindSafe for Misere<'a, G>

§

impl<'a, G> Send for Misere<'a, G>
where &'a mut G: Send,

§

impl<'a, G> Sync for Misere<'a, G>
where &'a mut G: Sync,

§

impl<'a, G> Unpin for Misere<'a, G>

§

impl<'a, G> UnsafeUnpin for Misere<'a, G>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToArrayVecScalar for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.