pub struct UndoCommand;
Expand description
Command to undo the last commit
Implementations§
Source§impl UndoCommand
impl UndoCommand
Trait Implementations§
Source§impl Command for UndoCommand
impl Command for UndoCommand
Source§impl Default for UndoCommand
impl Default for UndoCommand
Source§impl Destructive for UndoCommand
impl Destructive for UndoCommand
Source§fn destruction_description(&self) -> String
fn destruction_description(&self) -> String
Get a description of what will be destroyed/changed
Source§fn confirm_destruction(&self) -> Result<bool>
fn confirm_destruction(&self) -> Result<bool>
Confirm the destructive operation with the user
Source§impl GitCommand for UndoCommand
impl GitCommand for UndoCommand
Auto Trait Implementations§
impl Freeze for UndoCommand
impl RefUnwindSafe for UndoCommand
impl Send for UndoCommand
impl Sync for UndoCommand
impl Unpin for UndoCommand
impl UnwindSafe for UndoCommand
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more