pub trait Model {
type Output;
// Required methods
fn start(&mut self, cell: isize);
fn clear(&mut self, cell: isize);
fn mov(&mut self, cell: isize, to: Vec<isize>);
fn top(&mut self, cell: isize);
fn finish(self) -> Self::Output;
}
Expand description
The assumed model of computation
Required Associated Types§
Required Methods§
Sourcefn start(&mut self, cell: isize)
fn start(&mut self, cell: isize)
Sets the top of the stack to a given index
This function should generate a no-op. It is used just to communicate the starting state