Trait Store

Source
pub trait Store {
    // Required methods
    fn store_float(&mut self, key: String, value: f64);
    fn get_float(&self, key: &String) -> f64;
    fn new() -> Self;

    // Provided method
    fn generate_id(&self, state: String, action: Option<usize>) -> String { ... }
}

Required Methods§

Source

fn store_float(&mut self, key: String, value: f64)

Source

fn get_float(&self, key: &String) -> f64

Source

fn new() -> Self

Provided Methods§

Source

fn generate_id(&self, state: String, action: Option<usize>) -> String

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§