Enum GitConflictStatus
pub enum GitConflictStatus {
BothAdded,
BothModified,
BothDeleted,
DeletedByOneSide,
}Expand description
Conflict status vocabulary.
Variants§
BothAdded
Both sides added a path.
BothModified
Both sides modified a path.
BothDeleted
Both sides deleted a path.
DeletedByOneSide
One side deleted and the other modified a path.
Implementations§
§impl GitConflictStatus
impl GitConflictStatus
pub const fn porcelain_char(self) -> char
pub const fn porcelain_char(self) -> char
Returns the porcelain status code character.
Trait Implementations§
§impl Clone for GitConflictStatus
impl Clone for GitConflictStatus
§fn clone(&self) -> GitConflictStatus
fn clone(&self) -> GitConflictStatus
Returns a duplicate 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 more§impl Debug for GitConflictStatus
impl Debug for GitConflictStatus
§impl Display for GitConflictStatus
impl Display for GitConflictStatus
§impl FromStr for GitConflictStatus
impl FromStr for GitConflictStatus
§type Err = GitStatusParseError
type Err = GitStatusParseError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<GitConflictStatus, <GitConflictStatus as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GitConflictStatus, <GitConflictStatus as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for GitConflictStatus
impl Hash for GitConflictStatus
§impl Ord for GitConflictStatus
impl Ord for GitConflictStatus
§fn cmp(&self, other: &GitConflictStatus) -> Ordering
fn cmp(&self, other: &GitConflictStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for GitConflictStatus
impl PartialEq for GitConflictStatus
§impl PartialOrd for GitConflictStatus
impl PartialOrd for GitConflictStatus
impl Copy for GitConflictStatus
impl Eq for GitConflictStatus
impl StructuralPartialEq for GitConflictStatus
Auto Trait Implementations§
impl Freeze for GitConflictStatus
impl RefUnwindSafe for GitConflictStatus
impl Send for GitConflictStatus
impl Sync for GitConflictStatus
impl Unpin for GitConflictStatus
impl UnsafeUnpin for GitConflictStatus
impl UnwindSafe for GitConflictStatus
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