Trait StateR

pub trait StateR: Send + Sync {
    // Required method
    fn get(&self, key: Key) -> Option<Value>;

    // Provided method
    fn debug_iter<'a>(&'a self) -> Box<dyn Iterator<Item = (Key, Value)> + 'a> { ... }
}
Expand description

Read-only low-level state used by Lyquor Virtual Machine (LVM).

Required Methods§

fn get(&self, key: Key) -> Option<Value>

Provided Methods§

fn debug_iter<'a>(&'a self) -> Box<dyn Iterator<Item = (Key, Value)> + 'a>

This method is for debugging. If the implementation does not provide such functionality, it defaults to an empty iterator.

Trait Implementations§

§

impl Debug for dyn StateR

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementors§