pub trait GenericTypeEx: GenericType {
// Required method
fn specialize_by_id(
context: &dyn TypeSpecializationContext,
type_id: &GenericTypeId,
args: &[GenericArg],
) -> Result<Self::Concrete, ExtensionError>;
}
Expand description
Trait for introducing helper methods on GenericType.
Required Methods§
fn specialize_by_id( context: &dyn TypeSpecializationContext, type_id: &GenericTypeId, args: &[GenericArg], ) -> Result<Self::Concrete, ExtensionError>
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.