Enum git2::SubmoduleIgnore
source · pub enum SubmoduleIgnore {
Unspecified,
None,
Untracked,
Dirty,
All,
}
Expand description
Submodule ignore values
These values represent settings for the submodule.$name.ignore
configuration value which says how deeply to look at the working
directory when getting the submodule status.
Variants§
Unspecified
Use the submodule’s configuration
None
Any change or untracked file is considered dirty
Untracked
Only dirty if tracked files have changed
Dirty
Only dirty if HEAD has moved
All
Never dirty
Implementations§
source§impl SubmoduleIgnore
impl SubmoduleIgnore
sourcepub fn from_raw(raw: git_submodule_ignore_t) -> Self
pub fn from_raw(raw: git_submodule_ignore_t) -> Self
Converts a raw::git_submodule_ignore_t
to a SubmoduleIgnore
Trait Implementations§
source§impl Clone for SubmoduleIgnore
impl Clone for SubmoduleIgnore
source§fn clone(&self) -> SubmoduleIgnore
fn clone(&self) -> SubmoduleIgnore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SubmoduleIgnore
impl Debug for SubmoduleIgnore
source§impl PartialEq for SubmoduleIgnore
impl PartialEq for SubmoduleIgnore
source§fn eq(&self, other: &SubmoduleIgnore) -> bool
fn eq(&self, other: &SubmoduleIgnore) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SubmoduleIgnore
impl Eq for SubmoduleIgnore
impl StructuralPartialEq for SubmoduleIgnore
Auto Trait Implementations§
impl RefUnwindSafe for SubmoduleIgnore
impl Send for SubmoduleIgnore
impl Sync for SubmoduleIgnore
impl Unpin for SubmoduleIgnore
impl UnwindSafe for SubmoduleIgnore
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