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.

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 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