[][src]Struct crypto_brainfuck::utils::Interpreter

pub struct Interpreter<'a, R: Read, W: Write> {
    pub program_counter: usize,
    pub memory_pointer: usize,
    pub program: &'a Program,
    pub memory: [u8; 30000],
    pub input: R,
    pub output: W,
}

Fields

program_counter: usizememory_pointer: usizeprogram: &'a Programmemory: [u8; 30000]input: Routput: W

Implementations

impl<'a, R: Read, W: Write> Interpreter<'a, R, W>[src]

pub fn memory_at(&self, address: usize) -> u8[src]

pub fn interpret(&mut self)[src]

Auto Trait Implementations

impl<'a, R, W> RefUnwindSafe for Interpreter<'a, R, W> where
    R: RefUnwindSafe,
    W: RefUnwindSafe

impl<'a, R, W> Send for Interpreter<'a, R, W> where
    R: Send,
    W: Send

impl<'a, R, W> Sync for Interpreter<'a, R, W> where
    R: Sync,
    W: Sync

impl<'a, R, W> Unpin for Interpreter<'a, R, W> where
    R: Unpin,
    W: Unpin

impl<'a, R, W> UnwindSafe for Interpreter<'a, R, W> where
    R: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.