/// Returns true if the given path fully matches this selector.
Returns true if the given path fully matches this selector.
Returns true if the given path fully matches this selector .
pub fn matches_full_path(&self, path: &Path) -> bool {
        self.with_absolute_path(path, |path| {
            let name = path
                .file_name_cstr()
                .map(|s| s.to_string_lossy().to_string())
                .unwrap_or_default();
            let name = name.as_ref();
            let path = path.to_string_lossy();
            (self.included_names.is_empty() || self.included_names.iter().any(|p| p.matches(name)))
                && (self.included_paths.is_empty()
                    || self.included_paths.iter().any(|p| p.matches(&path)))
                && self.excluded_paths.iter().all(|p| !p.matches(&path))
        })
    }
pub fn matches_full_path ( & self , path : & Path ) -> bool { self . with_absolute_path ( path , | path | { let name = path . file_name_cstr ( ) . map ( | s | s . to_string_lossy ( ) . to_string ( ) ) . unwrap_or_default ( ) ; let name = name . as_ref ( ) ; let path = path . to_string_lossy ( ) ; ( self . included_names . is_empty ( ) || self . included_names . iter ( ) . any ( | p | p . matches ( name ) ) ) && ( self . included_paths . is_empty ( ) || self . included_paths . iter ( ) . any ( | p | p . matches ( & path ) ) ) && self . excluded_paths . iter ( ) . all ( | p | ! p . matches ( & path ) ) } ) }
Returns true if the given path fully matches this selector.
Returns true if the given path fully matches this selector .
&self
path
&Path