Struct retrosheet::Parser [] [src]

pub struct Parser { /* fields omitted */ }

An event file parser for Retrosheet event files.

Methods

impl Parser
[src]

Creates a new parser instance.

Resets the parser to the initial state.

Parses an event file.

This returns a list of the games in the event file.

Arguments

  • bytes - A stream of byte-data containing the entirety of the event file.

Errors

The parser expects the byte-data coming in to be a complete event file, so any bytes remaining are counted as an error. Any other errors are from invalid events.

Trait Implementations

impl Clone for Parser
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Parser
[src]

Formats the value using the given formatter.

impl PartialEq for Parser
[src]

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

This method tests for !=.