Trait game_of_life_parsers::Parser
[−]
[src]
pub trait Parser { fn parse<T: Read>(&mut self, input: T) -> Result<Box<GameDescriptor>>; }
Specifies a common interface for all game of life parser implementations.
Required Methods
fn parse<T: Read>(&mut self, input: T) -> Result<Box<GameDescriptor>>
Parse the given input, which can be any implementor of std::io::Read
, e.g. std::fs::File
.
Implementors
impl Parser for Life105Parser