pub trait PropertySetting {
const NAME: &'static str;
// Required methods
fn setting_name(&self) -> String;
fn from_str(value: &str) -> Result<Self, Box<dyn Error>>
where Self: Sized;
}
Required Associated Constants§
Required Methods§
fn setting_name(&self) -> String
fn from_str(value: &str) -> Result<Self, Box<dyn Error>>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.