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<'e, E: Env> IntoIterator for &'e ConfigEnv<E>
impl<'e, E: Env> IntoIterator for &'e ConfigEnv<E>
impl<E: Copy + Env> Copy for ConfigEnv<E>
impl<E: Eq + Env> Eq for ConfigEnv<E>
impl<E: Env> StructuralPartialEq for ConfigEnv<E>
Auto Trait Implementations§
impl<E> Freeze for ConfigEnv<E>where
E: Freeze,
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