pub trait Persisted:
Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn load(key: &str, fallback: Self) -> Self;
fn store(key: &str, value: &Self);
}Expand description
A type UserDefaults can hold, and that a binding can therefore persist.
The four AppStorage supports without a RawRepresentable detour.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".