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

Trait GetterTraits

source
pub trait GetterTraits: Default {
    type InfoType: NoGenericArgsGenericType;

    const STR_ID: &'static str;
}
Expand description

Trait for implementing getters.

Required Associated Constants§

source

const STR_ID: &'static str

The generic libfunc id for the getter libfunc.

Required Associated Types§

source

type InfoType: NoGenericArgsGenericType

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§