pub trait PrefValue:
Clone
+ PartialEq
+ 'static {
// Required methods
fn encode(&self) -> String;
fn decode(s: &str) -> Option<Self>;
}Expand description
A value a Pref can hold: encoded to one string in the store and back. Implemented for
the plain scalars and strings; enums get it from pref_enum!.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".