#[non_exhaustive]pub enum EntryState {
Staged,
Unstaged,
Untracked,
Conflicted,
}Expand description
A file’s state in the working tree or index.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Staged
Changes staged in the index.
Unstaged
Changes present only in the working tree.
Untracked
Path not tracked by git.
Conflicted
Path has merge conflicts.
Trait Implementations§
Source§impl Clone for EntryState
impl Clone for EntryState
Source§fn clone(&self) -> EntryState
fn clone(&self) -> EntryState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EntryState
Source§impl Debug for EntryState
impl Debug for EntryState
Source§impl Display for EntryState
impl Display for EntryState
impl Eq for EntryState
Source§impl PartialEq for EntryState
impl PartialEq for EntryState
Source§fn eq(&self, other: &EntryState) -> bool
fn eq(&self, other: &EntryState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EntryState
Auto Trait Implementations§
impl Freeze for EntryState
impl RefUnwindSafe for EntryState
impl Send for EntryState
impl Sync for EntryState
impl Unpin for EntryState
impl UnsafeUnpin for EntryState
impl UnwindSafe for EntryState
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