pub trait Module<'a, 'b>: Sized {
    type Machine: Machine<'a>;
    fn module(&self, name: &str) -> Result<Self, MachineError>;
    fn get(
        &self,
        name: &str
    ) -> Result<<Self::Machine as Machine<'a>>::Datum<'b, 'static>, MachineError>; fn set<'c>(
        &self,
        name: &str,
        datum: <Self::Machine as Machine<'a>>::Datum<'b, 'c>
    ) -> Result<(), MachineError>; }
Expand description

Module of Machine where values can be read and set (access with HasModules::module)

Associated Types

Machine type which the module belongs to

Required methods

Open a sub-module (create if non-existent)

Get value from module

Set value in module

Implementors