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