[−][src]Struct endbasic::Machine
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]
T: 'static + ?Sized,
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> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,