cairo_lang_sierra::extensions::modules::is_zero

Trait IsZeroTraits

Source
pub trait IsZeroTraits: Default {
    const IS_ZERO: &'static str;
    const GENERIC_TYPE_ID: GenericTypeId;
}
Expand description

Trait for implementing a IsZero library function for a type.

Required Associated Constants§

Source

const IS_ZERO: &'static str

The is_zero library function id.

Source

const GENERIC_TYPE_ID: GenericTypeId

The id of the generic type to implement the library functions for.

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 IsZeroTraits for Felt252Traits

Source§

const IS_ZERO: &'static str = "felt252_is_zero"

Source§

const GENERIC_TYPE_ID: GenericTypeId = <Felt252Type as NamedType>::ID

Source§

impl IsZeroTraits for Sint128Traits

Source§

const IS_ZERO: &'static str = "i128_is_zero"

Source§

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

Source§

impl IsZeroTraits for Sint8Traits

Source§

const IS_ZERO: &'static str = "i8_is_zero"

Source§

const GENERIC_TYPE_ID: GenericTypeId = <Sint8Type as NamedType>::ID

Source§

impl IsZeroTraits for Sint16Traits

Source§

const IS_ZERO: &'static str = "i16_is_zero"

Source§

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

Source§

impl IsZeroTraits for Sint32Traits

Source§

const IS_ZERO: &'static str = "i32_is_zero"

Source§

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

Source§

impl IsZeroTraits for Sint64Traits

Source§

const IS_ZERO: &'static str = "i64_is_zero"

Source§

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

Source§

impl IsZeroTraits for Uint128Traits

Source§

const IS_ZERO: &'static str = "u128_is_zero"

Source§

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

Source§

impl IsZeroTraits for Uint8Traits

Source§

const IS_ZERO: &'static str = "u8_is_zero"

Source§

const GENERIC_TYPE_ID: GenericTypeId = <Uint8Type as NamedType>::ID

Source§

impl IsZeroTraits for Uint16Traits

Source§

const IS_ZERO: &'static str = "u16_is_zero"

Source§

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

Source§

impl IsZeroTraits for Uint32Traits

Source§

const IS_ZERO: &'static str = "u32_is_zero"

Source§

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

Source§

impl IsZeroTraits for Uint64Traits

Source§

const IS_ZERO: &'static str = "u64_is_zero"

Source§

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