Start with SchematicsFactory and bin
This commit is contained in:
parent
c91eb2f04e
commit
0bc56a8f69
8 changed files with 157 additions and 30 deletions
|
|
@ -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>>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue