Struct git_config_env::ConfigEnv 
source · pub struct ConfigEnv<E: Env> { /* private fields */ }Expand description
Read user-defined configuration
If GIT_CONFIG_COUNT is set to a positive number, all environment pairs GIT_CONFIG_KEY_<n>
and GIT_CONFIG_VALUE_<n> up to that number will be read. The config pairs are zero-indexed.
Any missing key or value is will be ignored. An empty GIT_CONFIG_COUNT is treated the same
as GIT_CONFIG_COUNT=0, namely no pairs are processed.
These environment variables should override values in configuration files, but should be
overridden by any explicit options passed via git -c.
Implementations§
Trait Implementations§
source§impl<K, V> FromIterator<(K, V)> for ConfigEnv<HashMap<String, String>>where
    K: Into<String>,
    V: Into<String>,
 
impl<K, V> FromIterator<(K, V)> for ConfigEnv<HashMap<String, String>>where K: Into<String>, V: Into<String>,
source§impl<'e, E: Env> IntoIterator for &'e ConfigEnv<E>
 
impl<'e, E: Env> IntoIterator for &'e ConfigEnv<E>
source§impl<E: PartialEq + Env> PartialEq<ConfigEnv<E>> for ConfigEnv<E>
 
impl<E: PartialEq + Env> PartialEq<ConfigEnv<E>> for ConfigEnv<E>
impl<E: Copy + Env> Copy for ConfigEnv<E>
impl<E: Eq + Env> Eq for ConfigEnv<E>
impl<E: Env> StructuralEq for ConfigEnv<E>
impl<E: Env> StructuralPartialEq for ConfigEnv<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for ConfigEnv<E>where E: RefUnwindSafe,
impl<E> Send for ConfigEnv<E>where E: Send,
impl<E> Sync for ConfigEnv<E>where E: Sync,
impl<E> Unpin for ConfigEnv<E>where E: Unpin,
impl<E> UnwindSafe for ConfigEnv<E>where E: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more