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§
Sourcefn is_installed(&self, _module_name: impl AsRef<str>) -> bool
fn is_installed(&self, _module_name: impl AsRef<str>) -> bool
Checks if a module is installed.
Sourcefn is_enabled(&self, _module_name: impl AsRef<str>) -> bool
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§
impl ModuleDirectory for ModuleDirectory
Available on crate feature
fs only.