pub trait ResolvePeripheral<'a>: AsRef<str> {
type Config;
// Required methods
fn get_map(
root: &'a EspforgeConfiguration,
) -> Option<&'a HashMap<String, Self::Config>>;
fn as_str(&self) -> &str;
fn section_name() -> &'static str;
}Required Associated Types§
Required Methods§
Sourcefn get_map(
root: &'a EspforgeConfiguration,
) -> Option<&'a HashMap<String, Self::Config>>
fn get_map( root: &'a EspforgeConfiguration, ) -> Option<&'a HashMap<String, Self::Config>>
Returns the map containing the configs for this peripheral type
fn as_str(&self) -> &str
fn section_name() -> &'static str
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.