Skip to main content

PattEnvIndex

Trait PattEnvIndex 

Source
pub trait PattEnvIndex {
    // Required methods
    fn has_dir(&self, dir: &str) -> bool;
    fn has_file_with_prefix(&self, prefix: &str) -> bool;
    fn any_file_in_dir(
        &self,
        dir: &str,
        check: &mut dyn FnMut(&str) -> bool,
    ) -> bool;
}

Required Methods§

Source

fn has_dir(&self, dir: &str) -> bool

Source

fn has_file_with_prefix(&self, prefix: &str) -> bool

Source

fn any_file_in_dir( &self, dir: &str, check: &mut dyn FnMut(&str) -> bool, ) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§