pub trait GenericTypeArgGenericType: Default {
const ID: GenericTypeId;
// Required method
fn calc_info(
&self,
long_id: ConcreteTypeLongId,
wrapped_info: TypeInfo
) -> Result<TypeInfo, SpecializationError>;
}
Expand description
Trait for describing a generic type with a single type arg.
Required Associated Constants§
const ID: GenericTypeId
Required Methods§
sourcefn calc_info(
&self,
long_id: ConcreteTypeLongId,
wrapped_info: TypeInfo
) -> Result<TypeInfo, SpecializationError>
fn calc_info( &self, long_id: ConcreteTypeLongId, wrapped_info: TypeInfo ) -> Result<TypeInfo, SpecializationError>
Returns the type info of the wrapping type.
Object Safety§
This trait is not object safe.