pub trait HasStaticType {
// Required method
fn type_info() -> &'static Type;
}
Expand description
A trait that defines static type information for types that can provide it.
Required Methods§
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.
Implementations on Foreign Types§
Source§impl<T> HasStaticType for *const Twhere
T: HasStaticType + 'static,
Every type that has at least a type name also has a valid pointer type name
impl<T> HasStaticType for *const Twhere
T: HasStaticType + 'static,
Every type that has at least a type name also has a valid pointer type name
Source§impl<T> HasStaticType for *mut Twhere
T: HasStaticType + 'static,
Every type that has at least a type name also has a valid pointer type name
impl<T> HasStaticType for *mut Twhere
T: HasStaticType + 'static,
Every type that has at least a type name also has a valid pointer type name