Trait Pov

Source
pub trait Pov: Sized {
    type Output: NonPov<Output = Self>;

    // Required method
    fn un_pov(self, pov: Player) -> Self::Output;

    // Provided method
    fn flip(self) -> Self { ... }
}
Expand description

The opposite of NonPov.

Required Associated Types§

Source

type Output: NonPov<Output = Self>

Required Methods§

Source

fn un_pov(self, pov: Player) -> Self::Output

The opposite of NonPov::pov;

Provided Methods§

Source

fn flip(self) -> Self

Flip this outcome.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<I: Pov> Pov for Option<I>

Source§

type Output = Option<<I as Pov>::Output>

Source§

fn un_pov(self, pov: Player) -> Option<I::Output>

Implementors§

Source§

impl Pov for OutcomeWDL

Source§

impl<V> Pov for WDL<V>

Source§

impl<V: Neg<Output = V>> Pov for ScalarPov<V>