Trait game_of_life_parsers::Parser
[−]
[src]
pub trait Parser { fn parse<'a>(
&mut self,
input: Box<Read + 'a>
) -> Result<Box<GameDescriptor>>; }
Specifies a common interface for all game of life parser implementations.
Required Methods
fn parse<'a>(&mut self, input: Box<Read + 'a>) -> 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
impl Parser for Life106Parser