Struct pgn_reader::Reader
[−]
[src]
pub struct Reader<'a, 'pgn, V: Visitor<'pgn>> where
V: 'a, { /* fields omitted */ }
Reads a PGN.
Methods
impl<'a, 'pgn, V: Visitor<'pgn>> Reader<'a, 'pgn, V>
[src]
fn new(visitor: &'a mut V, pgn: &'pgn [u8]) -> Reader<'a, 'pgn, V>
[src]
Creates a new reader with a custom Visitor
.
fn read_game(&mut self) -> Option<V::Result>
[src]
Read the next game, returning the result from the visitor, or None
if there was no further game.
fn read_all(self)
[src]
Reads all games.