pub trait GetterTraitsEx: Default {
const STR_ID: &'static str;
// Required method
fn info_type_id(
context: &dyn SignatureSpecializationContext,
) -> Result<ConcreteTypeId, SpecializationError>;
}
Expand description
Same as GetterTraits, but with a function to return the concrete TypeId.
Required Associated Constants§
Required Methods§
sourcefn info_type_id(
context: &dyn SignatureSpecializationContext,
) -> Result<ConcreteTypeId, SpecializationError>
fn info_type_id( context: &dyn SignatureSpecializationContext, ) -> Result<ConcreteTypeId, SpecializationError>
The simple sierra generic type returned by the getter.
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.