Trait cfg_rs::source::ConfigSourceParser
source · pub trait ConfigSourceParser: Send {
type Adaptor: ConfigSourceAdaptor;
// Required methods
fn parse_source(_: &str) -> Result<Self::Adaptor, ConfigError>;
fn file_extensions() -> Vec<&'static str>;
}Expand description
Parse config source from string.
Required Associated Types§
sourcetype Adaptor: ConfigSourceAdaptor
type Adaptor: ConfigSourceAdaptor
Config source adaptor.
Required Methods§
sourcefn parse_source(_: &str) -> Result<Self::Adaptor, ConfigError>
fn parse_source(_: &str) -> Result<Self::Adaptor, ConfigError>
Parse config source.
sourcefn file_extensions() -> Vec<&'static str>
fn file_extensions() -> Vec<&'static str>
File extenstions.
Implementations on Foreign Types§
source§impl ConfigSourceParser for Ini
Available on crate feature ini only.
impl ConfigSourceParser for Ini
Available on crate feature
ini only.