StaticTypeLoader

Trait StaticTypeLoader 

Source
pub trait StaticTypeLoader {
    // Required methods
    fn instance() -> &'static TypeLoaderInstance;
    fn namespace() -> &'static str;
}
Expand description

Convenience trait for a type loader using a static TypeLoaderInstance and namespace known at compile time.

Types implementing this blanket implement TypeLoader

Required Methods§

Source

fn instance() -> &'static TypeLoaderInstance

Get the type loader instance used by this type loader.

Source

fn namespace() -> &'static str

Get the namespace this type loader manages.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§