pub enum InstallHookResult {
Installed,
AlreadyExists,
}Expand description
Outcome of install_pre_commit_hook. Both variants are “no error” — the
caller decides whether AlreadyExists triggers a non-zero exit.
Variants§
Installed
The hook did not exist; we wrote it.
AlreadyExists
A pre-commit hook already exists; we left it alone.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstallHookResult
impl RefUnwindSafe for InstallHookResult
impl Send for InstallHookResult
impl Sync for InstallHookResult
impl Unpin for InstallHookResult
impl UnsafeUnpin for InstallHookResult
impl UnwindSafe for InstallHookResult
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