Enum retrosheet::GameError
[−]
[src]
pub enum GameError { InvalidEvent(State, Event), InvalidEventBeforeSub(Event), NoEventBeforeSub, ParsingDone, ParsingIncomplete, Unimplemented, }
An error that occurs while processing a game.
Variants
InvalidEvent(State, Event)
The event provided is not valid in the current state.
InvalidEventBeforeSub(Event)
The event before a substitution should always be a play, not something else.
NoEventBeforeSub
The event before a substitution should always be a play.
ParsingDone
Parsing was already completed, so we cannot parse more events.
ParsingIncomplete
Parsing was not done when the user attempted to complete game processing.
Unimplemented
A portion of processing is not yet implemented.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.