[][src]Struct brainfrsck::components::IO

pub struct IO { /* fields omitted */ }

"""Wrapper""" for the Memory component of the interpreter that handles the actual IO and such of the interpreter

Methods

impl IO[src]

pub fn new(input: Vec<u8>) -> Self[src]

Constructor for the IO component

pub fn write_to(&mut self, memory: &mut Memory)[src]

Write a single byte from the front of io.input into memory

pub fn pull_from(&mut self, memory: &mut Memory)[src]

Write a single byte from memory onto the back of io.output

pub fn output(&self) -> Vec<u8>[src]

Trait Implementations

impl Default for IO[src]

impl Debug for IO[src]

Auto Trait Implementations

impl Send for IO

impl Sync for IO

impl Unpin for IO

impl UnwindSafe for IO

impl RefUnwindSafe for IO

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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