Trait HeaderChecker

Source
pub trait HeaderChecker: Send + Clone {
    // Required method
    fn check(&self, file: &mut impl Read) -> Result<bool>;
}
Expand description

Checks for headers in files, like licenses or author attribution.

This is intended to be used via Header, not called directly.

Required Methods§

Source

fn check(&self, file: &mut impl Read) -> Result<bool>

Return true if the file has the desired header, false otherwise.

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.

Implementors§