[][src]Trait egui::app::Storage

pub trait Storage {
    fn get_string(&self, key: &str) -> Option<&str>;
fn set_string(&mut self, key: &str, value: String); }

A place where you can store custom data in a way that persists when you restart the app.

On the web this is backed by local storage. On desktop this is backed by the file system.

Required methods

fn get_string(&self, key: &str) -> Option<&str>

fn set_string(&mut self, key: &str, value: String)

Loading content...

Implementors

Loading content...