Struct git_config::fs::Config [−][src]
pub struct Config<'config> { /* fields omitted */ }Implementations
pub fn value<T: TryFrom<Cow<'config, [u8]>>>(
&'config self,
section_name: &str,
subsection_name: Option<&str>,
key: &str
) -> Option<T>
pub fn try_value<'lookup, T: TryFrom<Cow<'config, [u8]>>>(
&'config self,
section_name: &'lookup str,
subsection_name: Option<&'lookup str>,
key: &'lookup str
) -> Result<Option<T>, GitConfigError<'lookup>>
Tries to retrieve the value, returning an error if the parsing fails or if the key was not found. On a successful parse, the value will be returned as well as the source location. This respects the priority of the various configuration files.
Lower-level interface for directly accessing a