pub trait SignatureOnlyGenericLibfunc: Default {
const STR_ID: &'static str;
// Required method
fn specialize_signature(
&self,
context: &dyn SignatureSpecializationContext,
args: &[GenericArg],
) -> Result<LibfuncSignature, SpecializationError>;
}
Expand description
Trait for implementing a specialization generator not holding anything more than a signature.
Required Associated Constants§
Required Methods§
fn specialize_signature( &self, context: &dyn SignatureSpecializationContext, args: &[GenericArg], ) -> Result<LibfuncSignature, SpecializationError>
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.