Struct endbasic_std::MachineBuilder [−][src]
Builder pattern to construct an EndBASIC interpreter.
Unless otherwise specified, the interpreter is connected to a terminal-based console.
Implementations
impl MachineBuilder
[src]
pub fn with_console(self, console: Rc<RefCell<dyn Console>>) -> Self
[src]
Overrides the default terminal-based console with the given one.
pub fn with_gpio_pins(self, pins: Rc<RefCell<dyn Pins>>) -> Self
[src]
Overrides the default hardware-based GPIO pins with the given ones.
pub fn with_sleep_fn(self, sleep_fn: SleepFn) -> Self
[src]
Overrides the default sleep function with the given one.
pub fn build(self) -> Result<Machine>
[src]
Builds the interpreter.
pub fn make_interactive(self) -> InteractiveMachineBuilder
[src]
Extends the machine with interactive (REPL) features.
Trait Implementations
impl Default for MachineBuilder
[src]
fn default() -> MachineBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MachineBuilder
[src]
impl !Send for MachineBuilder
[src]
impl !Sync for MachineBuilder
[src]
impl Unpin for MachineBuilder
[src]
impl !UnwindSafe for MachineBuilder
[src]
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,
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,