pub trait IsSettings {
// Required methods
fn pick<S, T>(&self, name: S) -> Option<Setting<'_, T>>
where S: Into<Vec<u8>>,
T: IsSetting + ?Sized;
fn str_<S>(&self, name: S) -> Option<Setting<'_, str>>
where S: Into<Vec<u8>>;
fn num<S>(&self, name: S) -> Option<Setting<'_, f64>>
where S: Into<Vec<u8>>;
fn int<S>(&self, name: S) -> Option<Setting<'_, i32>>
where S: Into<Vec<u8>>;
}Expand description
The settings interface
Required Methods§
fn pick<S, T>(&self, name: S) -> Option<Setting<'_, T>>
fn str_<S>(&self, name: S) -> Option<Setting<'_, str>>
fn num<S>(&self, name: S) -> Option<Setting<'_, f64>>
fn int<S>(&self, name: S) -> Option<Setting<'_, i32>>
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.