Trait pre_commit_sort::PreCommit

source ·
pub trait PreCommit: DeserializeOwned + Serialize {
    const PATH: &'static str;

    // Required method
    fn process(&mut self, install: bool);

    // Provided method
    fn main(install: bool) -> Result<()> { ... }
}

Required Associated Constants§

source

const PATH: &'static str

Required Methods§

source

fn process(&mut self, install: bool)

Provided Methods§

source

fn main(install: bool) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl PreCommit for PreCommitConfig

source§

const PATH: &'static str = ".pre-commit-config.yaml"

source§

impl PreCommit for PreCommitHooks

source§

const PATH: &'static str = ".pre-commit-hooks.yaml"