cairo_lang_sierra::extensions::lib_func

Trait SignatureOnlyGenericLibfunc

Source
pub trait SignatureOnlyGenericLibfunc: Default {
    const STR_ID: &'static str;

    // Required method
    fn specialize_signature(
        &self,
        context: &dyn SignatureSpecializationContext,
        args: &[GenericArg],
    ) -> Result<LibfuncSignature, SpecializationError>;
}
Expand description

Trait for implementing a specialization generator not holding anything more than a signature.

Required Associated Constants§

Source

const STR_ID: &'static str

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 SignatureOnlyGenericLibfunc for ArrayNewLibfunc

Source§

const STR_ID: &'static str = "array_new"

Source§

impl SignatureOnlyGenericLibfunc for BoundedIntAddLibfunc

Source§

const STR_ID: &'static str = "bounded_int_add"

Source§

impl SignatureOnlyGenericLibfunc for BoundedIntIsZeroLibfunc

Source§

const STR_ID: &'static str = "bounded_int_is_zero"

Source§

impl SignatureOnlyGenericLibfunc for BoundedIntMulLibfunc

Source§

const STR_ID: &'static str = "bounded_int_mul"

Source§

impl SignatureOnlyGenericLibfunc for BoundedIntSubLibfunc

Source§

const STR_ID: &'static str = "bounded_int_sub"

Source§

impl SignatureOnlyGenericLibfunc for BoundedIntWrapNonZeroLibfunc

Source§

const STR_ID: &'static str = "bounded_int_wrap_non_zero"

Source§

impl SignatureOnlyGenericLibfunc for UpcastLibfunc

Source§

const STR_ID: &'static str = "upcast"

Source§

impl SignatureOnlyGenericLibfunc for DropLibfunc

Source§

const STR_ID: &'static str = "drop"

Source§

impl SignatureOnlyGenericLibfunc for DupLibfunc

Source§

const STR_ID: &'static str = "dup"

Source§

impl SignatureOnlyGenericLibfunc for EnumMatchLibfunc

Source§

const STR_ID: &'static str = "enum_match"

Source§

impl SignatureOnlyGenericLibfunc for EnumSnapshotMatchLibfunc

Source§

const STR_ID: &'static str = "enum_snapshot_match"

Source§

impl SignatureOnlyGenericLibfunc for Felt252DictNewLibfunc

Source§

const STR_ID: &'static str = "felt252_dict_new"

Source§

impl SignatureOnlyGenericLibfunc for Felt252DictSquashLibfunc

Source§

const STR_ID: &'static str = "felt252_dict_squash"

Source§

impl SignatureOnlyGenericLibfunc for RenameLibfunc

Source§

const STR_ID: &'static str = "rename"

Source§

impl SignatureOnlyGenericLibfunc for UnwrapNonZeroLibfunc

Source§

const STR_ID: &'static str = "unwrap_non_zero"

Source§

impl SignatureOnlyGenericLibfunc for NullLibfunc

Source§

const STR_ID: &'static str = "null"

Source§

impl SignatureOnlyGenericLibfunc for IntRangePopFrontLibfunc

Source§

const STR_ID: &'static str = "int_range_pop_front"

Source§

impl SignatureOnlyGenericLibfunc for IntRangeTryNewLibfunc

Source§

const STR_ID: &'static str = "int_range_try_new"

Source§

impl SignatureOnlyGenericLibfunc for SnapshotTakeLibfunc

Source§

const STR_ID: &'static str = "snapshot_take"

Source§

impl SignatureOnlyGenericLibfunc for StructConstructLibfunc

Source§

const STR_ID: &'static str = "struct_construct"

Source§

impl SignatureOnlyGenericLibfunc for StructDeconstructLibfunc

Source§

const STR_ID: &'static str = "struct_deconstruct"

Source§

impl SignatureOnlyGenericLibfunc for StructSnapshotDeconstructLibfunc

Source§

const STR_ID: &'static str = "struct_snapshot_deconstruct"

Source§

impl<T: NoGenericArgsGenericLibfunc> SignatureOnlyGenericLibfunc for T

Source§

const STR_ID: &'static str = <Self as NoGenericArgsGenericLibfunc>::STR_ID