asimov_directory/module_directory.rs
1// This is free and unencumbered software released into the public domain.
2
3/// A module directory in the abstract.
4pub trait ModuleDirectory {
5 /// Checks if a module is installed.
6 fn is_installed(&self, _module_name: impl AsRef<str>) -> bool {
7 false
8 }
9
10 /// Checks if a module is installed and enabled.
11 fn is_enabled(&self, _module_name: impl AsRef<str>) -> bool {
12 false
13 }
14}