cairo_lang_sierra::extensions::modules::starknet::getter

Trait GetterTraitsEx

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

Source

const STR_ID: &'static str

The generic libfunc id for the getter libfunc.

Required Methods§

Source

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.

Implementors§

Source§

impl GetterTraitsEx for GetExecutionInfoTrait

Source§

const STR_ID: &'static str = "get_execution_info_syscall"

Source§

impl GetterTraitsEx for GetExecutionInfoV2Trait

Source§

const STR_ID: &'static str = "get_execution_info_v2_syscall"

Source§

impl<TGetterTraits: GetterTraits> GetterTraitsEx for TGetterTraits

Source§

const STR_ID: &'static str = TGetterTraits::STR_ID