pub trait Value: Sized + Display {
const EXPECTED: &'static str;
// Required method
fn parse(text: &str) -> Option<Self>;
// Provided method
fn is_auto(&self) -> bool { ... }
}Expand description
A setting’s value type: parsed from and shown as the same text.
Required Associated Constants§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".