Start with SchematicsFactory and bin

This commit is contained in:
Adrian Heine 2017-09-22 15:13:12 +02:00
parent c91eb2f04e
commit 0bc56a8f69
8 changed files with 157 additions and 30 deletions

View file

@ -10,6 +10,12 @@ pub trait SymbolRunner {
fn run_symbol(&self, symbol: &Symbol) -> Result<(), Box<Error>>;
}
impl<R: SymbolRunner + ?Sized> SymbolRunner for Box<R> {
fn run_symbol(&self, symbol: &Symbol) -> Result<(), Box<Error>> {
(**self).run_symbol(symbol)
}
}
// Symbol
pub trait Symbol: Display {
fn target_reached(&self) -> Result<bool, Box<Error>>;