#[non_exhaustive]pub enum OperationState {
Clear,
Merge,
Rebase,
Conflict,
}Expand description
Whether the working copy is mid-operation, unified across the backends’
different models: git exposes an in-progress merge or rebase as on-disk state
(MERGE_HEAD / a rebase-* dir), while jj has no multi-step operations — it
records a conflict directly on the working-copy change.
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.
Clear
No operation in progress and no conflict.
Merge
A git merge is in progress (MERGE_HEAD present).
Rebase
A git rebase is in progress (a rebase-merge/rebase-apply dir present).
Conflict
The working copy has an unresolved conflict (chiefly jj, which records conflicts on the change rather than pausing an operation).
Trait Implementations§
Source§impl Clone for OperationState
impl Clone for OperationState
Source§fn clone(&self) -> OperationState
fn clone(&self) -> OperationState
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 OperationState
Source§impl Debug for OperationState
impl Debug for OperationState
impl Eq for OperationState
Source§impl PartialEq for OperationState
impl PartialEq for OperationState
Source§fn eq(&self, other: &OperationState) -> bool
fn eq(&self, other: &OperationState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OperationState
impl Serialize for OperationState
impl StructuralPartialEq for OperationState
Auto Trait Implementations§
impl Freeze for OperationState
impl RefUnwindSafe for OperationState
impl Send for OperationState
impl Sync for OperationState
impl Unpin for OperationState
impl UnsafeUnpin for OperationState
impl UnwindSafe for OperationState
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