#[non_exhaustive]pub enum ResetMode {
Mixed,
Soft,
Hard,
}Expand description
Controls repository reset behavior.
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.
Mixed
Reset HEAD and index, preserving worktree changes.
Soft
Reset HEAD only.
Hard
Reset HEAD, index, and worktree.
Trait Implementations§
impl Copy for ResetMode
impl Eq for ResetMode
impl StructuralPartialEq for ResetMode
Auto Trait Implementations§
impl Freeze for ResetMode
impl RefUnwindSafe for ResetMode
impl Send for ResetMode
impl Sync for ResetMode
impl Unpin for ResetMode
impl UnsafeUnpin for ResetMode
impl UnwindSafe for ResetMode
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