pub trait RAMMachine<K, V> {
// Required methods
fn new(config_arugments: ConfigArgs<K>) -> Self;
fn write(&mut self, address: K, value: V) -> Result<(), Error>;
fn read(&mut self, address: K) -> Result<V, Error>;
}Expand description
Random Access Memory Machine
Required Methods§
Sourcefn new(config_arugments: ConfigArgs<K>) -> Self
fn new(config_arugments: ConfigArgs<K>) -> Self
Create a new instance of RAM machine
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<K, V, const S: usize> RAMMachine<K, V> for StateMachine<K, V, S>
Implementation of RAMMachine for StateMachine