cairo_lang_sierra::extensions::lib_func

Trait ConcreteLibfunc

Source
pub trait ConcreteLibfunc {
    // Required methods
    fn param_signatures(&self) -> &[ParamSignature];
    fn branch_signatures(&self) -> &[BranchSignature];
    fn fallthrough(&self) -> Option<usize>;

    // Provided method
    fn output_types(&self) -> Vec<Vec<ConcreteTypeId>> { ... }
}
Expand description

Trait for a specialized library function.

Required Methods§

Source

fn param_signatures(&self) -> &[ParamSignature]

The parameter types and other information for the parameters for calling a library function.

Source

fn branch_signatures(&self) -> &[BranchSignature]

The output types and other information returning from a library function per branch.

Source

fn fallthrough(&self) -> Option<usize>

The index of the fallthrough branch of the library function if any.

Provided Methods§

Source

fn output_types(&self) -> Vec<Vec<ConcreteTypeId>>

Returns the output types returning from a library function per branch.

Implementors§

Source§

impl ConcreteLibfunc for CoreConcreteLibfunc

Source§

impl ConcreteLibfunc for ApTrackingConcreteLibfunc

Source§

impl ConcreteLibfunc for ArrayConcreteLibfunc

Source§

impl ConcreteLibfunc for BoolConcreteLibfunc

Source§

impl ConcreteLibfunc for BoundedIntConcreteLibfunc

Source§

impl ConcreteLibfunc for BoxConcreteLibfunc

Source§

impl ConcreteLibfunc for Bytes31ConcreteLibfunc

Source§

impl ConcreteLibfunc for CastConcreteLibfunc

Source§

impl ConcreteLibfunc for CircuitConcreteLibfunc

Source§

impl ConcreteLibfunc for ConstConcreteLibfunc

Source§

impl ConcreteLibfunc for CouponConcreteLibfunc

Source§

impl ConcreteLibfunc for DebugConcreteLibfunc

Source§

impl ConcreteLibfunc for EcConcreteLibfunc

Source§

impl ConcreteLibfunc for EnumConcreteLibfunc

Source§

impl ConcreteLibfunc for Felt252BinaryOperationConcrete

Source§

impl ConcreteLibfunc for Felt252Concrete

Source§

impl ConcreteLibfunc for Felt252DictConcreteLibfunc

Source§

impl ConcreteLibfunc for Felt252DictEntryConcreteLibfunc

Source§

impl ConcreteLibfunc for GasConcreteLibfunc

Source§

impl ConcreteLibfunc for Sint128Concrete

Source§

impl ConcreteLibfunc for Uint128Concrete

Source§

impl ConcreteLibfunc for Uint256Concrete

Source§

impl ConcreteLibfunc for Uint512Concrete

Source§

impl ConcreteLibfunc for MemConcreteLibfunc

Source§

impl ConcreteLibfunc for NullableConcreteLibfunc

Source§

impl ConcreteLibfunc for PedersenConcreteLibfunc

Source§

impl ConcreteLibfunc for PoseidonConcreteLibfunc

Source§

impl ConcreteLibfunc for IntRangeConcreteLibfunc

Source§

impl ConcreteLibfunc for StarkNetConcreteLibfunc

Source§

impl ConcreteLibfunc for Secp256ConcreteLibfunc

Source§

impl ConcreteLibfunc for TestingConcreteLibfunc

Source§

impl ConcreteLibfunc for StructConcreteLibfunc

Source§

impl<T: Secp256Trait> ConcreteLibfunc for Secp256OpConcreteLibfunc<T>

Source§

impl<TSignatureBasedConcreteLibfunc: SignatureBasedConcreteLibfunc> ConcreteLibfunc for TSignatureBasedConcreteLibfunc

Source§

impl<TSintTraits: SintTraits + IntMulTraits + IsZeroTraits> ConcreteLibfunc for SintConcrete<TSintTraits>

Source§

impl<TUintTraits: UintTraits + IntMulTraits + IsZeroTraits> ConcreteLibfunc for UintConcrete<TUintTraits>