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§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.