pub trait AsTypeDescription {
// Required method
fn as_type_description() -> TypeDescription;
}
Expand description
Turn a Rust type into a TypeDescription
object
Crate authors can either implement this manually or use the TypeDescription
derive
macro.
Required Methods§
Sourcefn as_type_description() -> TypeDescription
fn as_type_description() -> TypeDescription
Get a TypeDescription
object from the 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.