Trait MetaclassConstraint
pub unsafe trait MetaclassConstraint: Sized {
// Required method
fn get_static_metaclass() -> &'static Metaclass;
}Expand description
Used for statically marking all classes which provide type inspection through Metaclass.
Provides a way of getting a static metaclass of a given type.
§Safety
MetaclassConstraint is an internal trait and shouldn’t be implemented by users directly.
Required Methods§
fn get_static_metaclass() -> &'static Metaclass
fn get_static_metaclass() -> &'static Metaclass
Gets metaclass associated with a given type.
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.