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