Struct retrosheet::Game [] [src]

pub struct Game {
    pub id: String,
    pub info: HashMap<Info, String>,
    pub starters: HashSet<Player>,
    pub plays: Vec<(Event, Vec<Event>)>,
    pub substitutions: Vec<Substitution>,
    pub data: Vec<Event>,
    // some fields omitted
}

An MLB game.

Fields

The game id.

Metadata information about the game.

The players that started the game.

The sequence of plays that occurred in the game, along with comments, if they exist.

The set of substitutions that happened during the game. This can be used to construct a full list of who was playing during what parts of the game.

The set of data events that were recorded after play-by-play information.

Methods

impl Game
[src]

Instantiate a new game object in the initial state.

Retrieve the game state.

Attempt to complete parsing. Only allowed in the data state.

Process an event in the context of the game.

Trait Implementations

impl Clone for Game
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Game
[src]

Formats the value using the given formatter.

impl PartialEq for Game
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Game
[src]