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