pub struct MachineBuilder { /* private fields */ }
Expand description

Builder pattern to construct an EndBASIC interpreter.

Unless otherwise specified, the interpreter is connected to a terminal-based console.

Implementations§

Overrides the default terminal-based console with the given one.

Overrides the default hardware-based GPIO pins with the given ones.

Overrides the default sleep function with the given one.

Overrides the default yielding function with the given one.

Overrides the default signals channel with the given one.

Lazily initializes the console field with a default value and returns it.

Builds the interpreter.

Extends the machine with interactive (REPL) features.

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.