Skip to main content

ConfigValues

Trait ConfigValues 

Source
pub trait ConfigValues {
    // Required method
    fn get_config_value(config: &GitConfig, key: &str) -> Result<Self, Error>
       where Self: Sized;
}

Required Methods§

Source

fn get_config_value(config: &GitConfig, key: &str) -> Result<Self, Error>
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ConfigValues for bool

Source§

fn get_config_value(config: &GitConfig, key: &str) -> Result<Self, Error>

Source§

impl ConfigValues for u64

Source§

fn get_config_value(config: &GitConfig, key: &str) -> Result<Self, Error>

Source§

impl ConfigValues for String

Source§

fn get_config_value(config: &GitConfig, key: &str) -> Result<Self, Error>

Source§

impl ConfigValues for Vec<String>

Source§

fn get_config_value(config: &GitConfig, key: &str) -> Result<Self, Error>

Implementors§