Skip to main content

Store

Trait Store 

Source
pub trait Store: Send {
    // Required methods
    fn load(&self, code: &str) -> Option<Kept>;
    fn keep(&mut self, code: &str, kept: Kept);
}
Expand description

Where rooms’ towns are kept.

Required Methods§

Source

fn load(&self, code: &str) -> Option<Kept>

The town kept for room code, if there is one.

Source

fn keep(&mut self, code: &str, kept: Kept)

Keeps kept for room code, replacing the one before.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§