[][src]Enum ultra_tournament::BattleResult

pub enum BattleResult<M: Debug + Display + Clone + Default> {
    Solved(TournamentRoundResult, M),
    Tie,
}

Returned by the battle() function in implementations of BattleSystem

Variants

A successful solve, returns whether A or B wins, along with a piece of round metadata of type M.

Tie

A solve that resulted in a tie. When battle() returns this, tiebreaker() is run immediately after.

Auto Trait Implementations

impl<M> RefUnwindSafe for BattleResult<M> where
    M: RefUnwindSafe

impl<M> Send for BattleResult<M> where
    M: Send

impl<M> Sync for BattleResult<M> where
    M: Sync

impl<M> Unpin for BattleResult<M> where
    M: Unpin

impl<M> UnwindSafe for BattleResult<M> where
    M: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,