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