[][src]Struct endbasic::Machine

pub struct Machine<'a> { /* fields omitted */ }

Executes an EndBASIC program and tracks its state.

Methods

impl<'a> Machine<'a>[src]

pub fn new(console: &'a mut dyn Console) -> Self[src]

Creates a new machine attached to the given console.

pub fn exec<'b>(&mut self, input: &'b mut dyn Read) -> Fallible<()>[src]

Executes a program extracted from the input readable.

Note that this does not consume self. As a result, it is possible to execute multiple different programs on the same machine, all sharing state.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Machine<'a>

impl<'a> !Send for Machine<'a>

impl<'a> !Sync for Machine<'a>

impl<'a> Unpin for Machine<'a>

impl<'a> !UnwindSafe for Machine<'a>

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.