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§
Sourcefn instance() -> &'static TypeLoaderInstance
fn instance() -> &'static TypeLoaderInstance
Get the type loader instance used by this type loader.
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.