[−][src]Struct endbasic_core::exec::MachineBuilder
Builder pattern for a new machine.
The default
constructor creates a new builder for a machine with no builtin commands.
Implementations
impl MachineBuilder
[src]
pub fn add_builtin(self, command: Rc<dyn BuiltinCommand>) -> Self
[src]
Registers the given builtin command, which must not yet be registered.
pub fn add_builtins(self, commands: Vec<Rc<dyn BuiltinCommand>>) -> Self
[src]
Registers the given builtin commands. See add_builtin
for more details.
pub fn build(self) -> Machine
[src]
Creates a new machine with the current configuration.
Trait Implementations
impl Default for MachineBuilder
[src]
pub fn default() -> MachineBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MachineBuilder
impl !Send for MachineBuilder
impl !Sync for MachineBuilder
impl Unpin for MachineBuilder
impl !UnwindSafe for MachineBuilder
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>,