pub enum Writer {
Prek,
PreCommit,
Own,
Configured,
}Expand description
Who wrote one installed hook, read from the header its manager writes.
Variants§
Prek
prek: # File generated by prek.
PreCommit
pre-commit: # File generated by pre-commit.
Own
No known manager: the project’s own hook.
Configured
A hook git’s configuration defines, by hook.<name>.event, which
git 2.54 and newer run beside the hooks directory.
Implementations§
Trait Implementations§
impl Copy for Writer
impl Eq for Writer
impl StructuralPartialEq for Writer
Auto Trait Implementations§
impl Forget for Writer
impl Freeze for Writer
impl Move for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnsafeUnpin for Writer
impl UnwindSafe for Writer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.