[−][src]Struct bfcore::Interpreter
The struct containing the data for interpretting brainfuck code
Methods
impl<I, O> Interpreter<I, O> where
I: Input,
O: Output,
[src]
I: Input,
O: Output,
pub fn new(program: &str, input: I, output: O) -> Self
[src]
Create a new interpreter from a program, an input object, and an output object
pub fn run(&mut self)
[src]
Execute the program. This can be done over and over again, the interpreter is reset each time. HOWEVER: State kept within your input and output objects CANNOT be reset!!! This only resets the interpreter's internal state before execution!!!!
Auto Trait Implementations
impl<I, O> Unpin for Interpreter<I, O> where
I: Unpin,
O: Unpin,
I: Unpin,
O: Unpin,
impl<I, O> Sync for Interpreter<I, O> where
I: Sync,
O: Sync,
I: Sync,
O: Sync,
impl<I, O> Send for Interpreter<I, O> where
I: Send,
O: Send,
I: Send,
O: Send,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,