HasRootFiltering

Trait HasRootFiltering 

Source
pub trait HasRootFiltering {
    // Provided methods
    fn allowed_extensions(&self) -> Option<&[String]> { ... }
    fn excluded_patterns(&self) -> Option<&[String]> { ... }
    fn should_include(&self, path: &str) -> bool { ... }
}
Expand description

Trait for root filtering and exclusions

Provided Methods§

Source

fn allowed_extensions(&self) -> Option<&[String]>

File extensions to include (None = all)

Source

fn excluded_patterns(&self) -> Option<&[String]>

File patterns to exclude (glob patterns)

Source

fn should_include(&self, path: &str) -> bool

Check if a file should be included

Implementors§