Skip to main content

ConfigName

Trait ConfigName 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl ConfigName for &str

Source§

fn with_config_name<R>(self, operation: impl FnOnce(&str) -> R) -> R

Source§

impl ConfigName for &String

Source§

fn with_config_name<R>(self, operation: impl FnOnce(&str) -> R) -> R

Source§

impl ConfigName for String

Source§

fn with_config_name<R>(self, operation: impl FnOnce(&str) -> R) -> R

Implementors§