Struct pgn_reader::Reader

source ·
pub struct Reader<'a, 'pgn, V: Visitor<'pgn>>where
    V: 'a,
{ /* private fields */ }
Expand description

Reads a PGN.

Implementations

Creates a new reader with a custom Visitor.

Read the next game, returning the result from the visitor, or None if there was no further game.

Skip the next game without calling methods of the visitor.

Reads all games.

Returns a slice containing the not yet fully parsed games.

Trait Implementations

Formats the value using the given formatter. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. 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.