Module integer

Module integer 

Source

Macrosยง

impl_binary_repr ๐Ÿ”’
impl_binary_repr_for_saturating ๐Ÿ”’
impl_binary_repr_for_wrapping ๐Ÿ”’
impl_binop ๐Ÿ”’
impl_int_base ๐Ÿ”’
impl_int_base_for_saturating ๐Ÿ”’
impl_int_base_for_wrapping ๐Ÿ”’
impl_opassign ๐Ÿ”’
impl_unsigned_signed ๐Ÿ”’
impl_unsigned_signed_for_saturating ๐Ÿ”’
impl_unsigned_signed_for_wrapping ๐Ÿ”’

Structsยง

ExtendedGcd
extended_gcd(a,b): ax + by = g = gcd(a,b)
Saturating
Wrapper type of arithmetic saturating_* operations.
Wrapping
Wrapper type of arithmetic wrapping_* operations.

Traitsยง

BinaryRepr
Trait for operations of integer in binary representation.
IntBase
Trait for basic primitive integer operations.
Saturatingable
Signed
Trait for signed integer operations.
Unsigned
Trait for unsigned integer operations.
Wrappingable

Functionsยง

rem_u256_by_u128 ๐Ÿ”’