Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

bounded_int

Fully qualified path: core::internal::bounded_int

Modules

constrain0
trim_impl
neg_felt252Helper implementation for NegFelt252 .

Type aliases

UnitInt

Impl aliases

Traits

AddHelperA helper trait for adding two BoundedInt instances.
DivRemHelperA helper trait for dividing two BoundedInt instances.
MulHelperA helper trait for multiplying two BoundedInt instances.
SubHelperA helper trait for subtracting two BoundedInt instances.
ConstrainHelperA helper trait for constraining a BoundedInt instance.
TrimMinHelperA helper trait for trimming a BoundedInt instance’s min value.
TrimMaxHelperA helper trait for trimming a BoundedInt instance’s max value.
NegFelt252Returns the negation of the given felt252 value.
NegateHelperA helper trait for negating a BoundedInt instance.

Impls

Extern types

Extern functions

bounded_int_div_rem
downcastDowncasts FromType to ToType - for types where conversion may fail. If done for wrong types would cause a compiler panic at the Sierra stage.
upcastUpcasts FromType to ToType - for types where conversion is always legal. If done for wrong types would cause a compiler panic at the Sierra stage.
bounded_int_add
bounded_int_sub
bounded_int_mul
bounded_int_constrain
bounded_int_trim_min
bounded_int_trim_max
bounded_int_is_zero