Skip to main content

Saves

Trait Saves 

Source
pub trait Saves {
    // Required method
    fn name(&self) -> &'static str;
}
Expand description

Trait every save vocabulary implements, written by Saves.

Required if you want a vocabulary of keys; what each of them keeps is declared by hand, in SaveKey.

Required Methods§

Source

fn name(&self) -> &'static str

Name the store keeps this key under, made of the vocabulary’s name and this key’s own name.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§