pub trait ConfigName {
// Required method
fn with_config_name<R>(self, operation: impl FnOnce(&str) -> R) -> R;
}Expand description
Provides borrowed access to a configuration key argument.
Required Methods§
Sourcefn with_config_name<R>(self, operation: impl FnOnce(&str) -> R) -> R
fn with_config_name<R>(self, operation: impl FnOnce(&str) -> R) -> R
Invokes operation with this argument as a string slice.
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.