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
sourceimpl 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
sourceimpl Clone for SubmoduleIgnore
impl Clone for SubmoduleIgnore
sourcefn clone(&self) -> SubmoduleIgnore
fn clone(&self) -> SubmoduleIgnore
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SubmoduleIgnore
impl Debug for SubmoduleIgnore
sourceimpl PartialEq<SubmoduleIgnore> for SubmoduleIgnore
impl PartialEq<SubmoduleIgnore> for SubmoduleIgnore
impl Copy for SubmoduleIgnore
impl Eq for SubmoduleIgnore
impl StructuralEq 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more