Enum GitFileChange
pub enum GitFileChange {
Added,
Modified,
Deleted,
Renamed,
Copied,
Untracked,
Ignored,
Conflicted,
}Expand description
File-change vocabulary.
Variants§
Added
Added file.
Modified
Modified file.
Deleted
Deleted file.
Renamed
Renamed file.
Copied
Copied file.
Untracked
Untracked file.
Ignored
Ignored file.
Conflicted
Conflicted file.
Implementations§
§impl GitFileChange
impl GitFileChange
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 GitFileChange
impl Clone for GitFileChange
§fn clone(&self) -> GitFileChange
fn clone(&self) -> GitFileChange
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 GitFileChange
impl Debug for GitFileChange
§impl Display for GitFileChange
impl Display for GitFileChange
§impl FromStr for GitFileChange
impl FromStr for GitFileChange
§type Err = GitStatusParseError
type Err = GitStatusParseError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<GitFileChange, <GitFileChange as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GitFileChange, <GitFileChange as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for GitFileChange
impl Hash for GitFileChange
§impl Ord for GitFileChange
impl Ord for GitFileChange
§impl PartialEq for GitFileChange
impl PartialEq for GitFileChange
§impl PartialOrd for GitFileChange
impl PartialOrd for GitFileChange
impl Copy for GitFileChange
impl Eq for GitFileChange
impl StructuralPartialEq for GitFileChange
Auto Trait Implementations§
impl Freeze for GitFileChange
impl RefUnwindSafe for GitFileChange
impl Send for GitFileChange
impl Sync for GitFileChange
impl Unpin for GitFileChange
impl UnsafeUnpin for GitFileChange
impl UnwindSafe for GitFileChange
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