pub trait PathChecker {
// Required methods
fn should_allow(&self, path: &Path) -> bool;
fn should_ignore(&self, path: &Path) -> bool;
}Expand description
Checks whether a path should be allowed or ignored when parsing blocks from files.
Required Methods§
Sourcefn should_allow(&self, path: &Path) -> bool
fn should_allow(&self, path: &Path) -> bool
Whether the given path should be explicitly allowed.
Sourcefn should_ignore(&self, path: &Path) -> bool
fn should_ignore(&self, path: &Path) -> bool
Whether the given path should be explicitly ignored.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".