pub trait FromTypeParam: Sized {
// Required method
fn from_type_param(type_param: &TypeParam) -> Result<Self>;
}
Expand description
Creates an instance by parsing an individual type_param and its attributes.
Required Methods§
fn from_type_param(type_param: &TypeParam) -> Result<Self>
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.