Skip to main content

ModuleMetadata

Trait ModuleMetadata 

Source
pub trait ModuleMetadata {
    const NAME: &'static CStr;
    const THIS_MODULE: ThisModule;
}
Expand description

Metadata attached to a Module or InPlaceModule.

Required Associated Constants§

Source

const NAME: &'static CStr

The name of the module as specified in the module! macro.

Source

const THIS_MODULE: ThisModule

The module’s THIS_MODULE pointer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§