Skip to main content

PathChecker

Trait PathChecker 

Source
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§

Source

fn should_allow(&self, path: &Path) -> bool

Whether the given path should be explicitly allowed.

Source

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".

Implementors§