pub trait ModuleMeta: 'static {
const NAME: &'static str;
// Provided method
fn dependencies() -> &'static [(&'static str, TypeId)] { ... }
}Expand description
Metadata trait for module registration.
Required Associated Constants§
Provided Methods§
Sourcefn dependencies() -> &'static [(&'static str, TypeId)]
fn dependencies() -> &'static [(&'static str, TypeId)]
Returns (name, TypeId) pairs for modules this module depends on.
Defaults to an empty slice — modules with no dependencies do not need to override this method.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".