Struct rustfk::RustFk
[−]
[src]
pub struct RustFk { /* fields omitted */ }
Methods
impl RustFk
[src]
pub fn new(d_size: usize, commands: Vec<u8>) -> RustFk
[src]
Constructs a new RustFk interpreter
d_size
is the amount of bytes to allocate for the tape
pub fn run<R: Read, W: Write>(
&mut self,
input: &mut R,
output: &mut W
) -> Result<(), RustFkError>
[src]
&mut self,
input: &mut R,
output: &mut W
) -> Result<(), RustFkError>
Run the interpreter using the given streams of input and output