Skip to main content

ModuleMeta

Trait ModuleMeta 

Source
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§

Source

const NAME: &'static str

The diagnostic name of this module.

Required Methods§

Source

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".

Implementors§