Struct git_config::file::ResolvedGitConfig
source · [−]pub struct ResolvedGitConfig<'data>(_);
Expand description
A git-config
that resolves entries on creation, providing a
HashMap
-like interface for users.
This does not provide the same guarantees as GitConfig
; namely, it does
not remember comments nor whitespace. Additionally, values are normalized
upon creation, so it’s not possible to retrieve the original value.
Implementations
sourceimpl ResolvedGitConfig<'static>
impl ResolvedGitConfig<'static>
sourceimpl<'data> ResolvedGitConfig<'data>
impl<'data> ResolvedGitConfig<'data>
sourcepub fn from_config(config: GitConfig<'data>) -> Self
pub fn from_config(config: GitConfig<'data>) -> Self
Resolves a given GitConfig
.
Trait Implementations
sourceimpl<'data> Debug for ResolvedGitConfig<'data>
impl<'data> Debug for ResolvedGitConfig<'data>
sourceimpl<'data> From<GitConfig<'data>> for ResolvedGitConfig<'data>
impl<'data> From<GitConfig<'data>> for ResolvedGitConfig<'data>
sourceimpl<'data> PartialEq<ResolvedGitConfig<'data>> for ResolvedGitConfig<'data>
impl<'data> PartialEq<ResolvedGitConfig<'data>> for ResolvedGitConfig<'data>
sourcefn eq(&self, other: &ResolvedGitConfig<'data>) -> bool
fn eq(&self, other: &ResolvedGitConfig<'data>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResolvedGitConfig<'data>) -> bool
fn ne(&self, other: &ResolvedGitConfig<'data>) -> bool
This method tests for !=
.
sourceimpl TryFrom<&'_ Path> for ResolvedGitConfig<'static>
impl TryFrom<&'_ Path> for ResolvedGitConfig<'static>
impl<'data> Eq for ResolvedGitConfig<'data>
impl<'data> StructuralEq for ResolvedGitConfig<'data>
impl<'data> StructuralPartialEq for ResolvedGitConfig<'data>
Auto Trait Implementations
impl<'data> RefUnwindSafe for ResolvedGitConfig<'data>
impl<'data> Send for ResolvedGitConfig<'data>
impl<'data> Sync for ResolvedGitConfig<'data>
impl<'data> Unpin for ResolvedGitConfig<'data>
impl<'data> UnwindSafe for ResolvedGitConfig<'data>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more