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§