cairo_lang_sierra::extensions::modules::int

Trait IntMulTraits

source
pub trait IntMulTraits: IntTraits {
    const WIDE_MUL: &'static str;
    const WIDE_MUL_RES_TYPE_ID: GenericTypeId;
}
Expand description

Trait for implementing multiplication for integers.

Required Associated Constants§

source

const WIDE_MUL: &'static str

The generic libfunc id that multiplies two integers.

source

const WIDE_MUL_RES_TYPE_ID: GenericTypeId

The generic type id for this type multiplication result.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl IntMulTraits for Sint8Traits

source§

const WIDE_MUL: &'static str = "i8_wide_mul"

source§

const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Sint16Type as NamedType>::ID

source§

impl IntMulTraits for Sint16Traits

source§

const WIDE_MUL: &'static str = "i16_wide_mul"

source§

const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Sint32Type as NamedType>::ID

source§

impl IntMulTraits for Sint32Traits

source§

const WIDE_MUL: &'static str = "i32_wide_mul"

source§

const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Sint64Type as NamedType>::ID

source§

impl IntMulTraits for Sint64Traits

source§

const WIDE_MUL: &'static str = "i64_wide_mul"

source§

const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Sint128Type as NamedType>::ID

source§

impl IntMulTraits for Uint8Traits

source§

const WIDE_MUL: &'static str = "u8_wide_mul"

source§

const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Uint16Type as NamedType>::ID

source§

impl IntMulTraits for Uint16Traits

source§

const WIDE_MUL: &'static str = "u16_wide_mul"

source§

const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Uint32Type as NamedType>::ID

source§

impl IntMulTraits for Uint32Traits

source§

const WIDE_MUL: &'static str = "u32_wide_mul"

source§

const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Uint64Type as NamedType>::ID

source§

impl IntMulTraits for Uint64Traits

source§

const WIDE_MUL: &'static str = "u64_wide_mul"

source§

const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Uint128Type as NamedType>::ID