pub enum ValidationError {
    ChanceNotDistribution,
    InvalidPlayerNum,
    NonMatchingInfosetNames,
    NonMatchingInfosetActions,
    NullOutcomePayoffs,
    InvalidNumberOfPayoffs,
    NonMatchingOutcomeNames,
    NonMatchingOutcomePayoffs,
    NoOutcomePayoffs,
}
Expand description

An error that results from something invalid about the parsed extensive form game

Variants

ChanceNotDistribution

The probabilities of actions associated with a chance node don’t sum to one

InvalidPlayerNum

A players number wasn’t between one and the number of players

NonMatchingInfosetNames

An infoset had different names attached to it

NonMatchingInfosetActions

An infoset had different sets of associated actions

NullOutcomePayoffs

There was payoff data associated with the null (0) outcome

InvalidNumberOfPayoffs

The number of specified payoffs did not match the number of players

NonMatchingOutcomeNames

An outcome had different names attached to it

NonMatchingOutcomePayoffs

An outcome had different associated payoffs

NoOutcomePayoffs

An outcomes was defined without payoffs

Trait Implementations

Formats the value using the given formatter. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.