cairo_lang_sierra::extensions::types

Trait GenericTypeEx

source
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§

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.

Implementors§

source§

impl<TGenericType: GenericType> GenericTypeEx for TGenericType