Enum git_checks_core::impl_prelude::StatusChange
source · [−]pub enum StatusChange {
Added,
Copied(u8),
Deleted,
Modified(Option<u8>),
Renamed(u8),
TypeChanged,
Unmerged,
Unknown,
}
Expand description
Ways a file can be changed in a commit.
Variants
Added
The file was added in this commit.
Copied(u8)
The file was copied in this commit with the given similarity index.
Deleted
The file was deleted in this commit.
Modified(Option<u8>)
The file was copied in this commit with an optional similarity index.
Renamed(u8)
The file was renamed in this commit with the given similarity index.
TypeChanged
The path changed type (types include directory, symlinks, and files).
Unmerged
The file is unmerged in the working tree.
Unknown
Git doesn’t know what’s going on.
Trait Implementations
sourceimpl Clone for StatusChange
impl Clone for StatusChange
sourcefn clone(&self) -> StatusChange
fn clone(&self) -> StatusChange
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 StatusChange
impl Debug for StatusChange
sourceimpl PartialEq<StatusChange> for StatusChange
impl PartialEq<StatusChange> for StatusChange
sourcefn eq(&self, other: &StatusChange) -> bool
fn eq(&self, other: &StatusChange) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StatusChange) -> bool
fn ne(&self, other: &StatusChange) -> bool
This method tests for !=
.
impl Copy for StatusChange
impl Eq for StatusChange
impl StructuralEq for StatusChange
impl StructuralPartialEq for StatusChange
Auto Trait Implementations
impl RefUnwindSafe for StatusChange
impl Send for StatusChange
impl Sync for StatusChange
impl Unpin for StatusChange
impl UnwindSafe for StatusChange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more