Skip to main content

ModuleDirectory

Trait ModuleDirectory 

Source
pub trait ModuleDirectory {
    // Provided methods
    fn is_installed(&self, _module_name: impl AsRef<str>) -> bool { ... }
    fn is_enabled(&self, _module_name: impl AsRef<str>) -> bool { ... }
}
Expand description

A module directory in the abstract.

Provided Methods§

Source

fn is_installed(&self, _module_name: impl AsRef<str>) -> bool

Checks if a module is installed.

Source

fn is_enabled(&self, _module_name: impl AsRef<str>) -> bool

Checks if a module is installed and enabled.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl ModuleDirectory for ModuleDirectory

Available on crate feature fs only.