Module ops

Module ops 

Source
Available on crate feature core only.
Expand description

Operator overloading for types and operators that may cause overflow.

The types of overflows that this module attempts to catch can be found here.

Functionsยง

nstd_core_ops_add_i8
Computes the addition operation of x + y.
nstd_core_ops_add_i16
Computes the addition operation of x + y.
nstd_core_ops_add_i32
Computes the addition operation of x + y.
nstd_core_ops_add_i64
Computes the addition operation of x + y.
nstd_core_ops_add_int
Computes the addition operation of x + y.
nstd_core_ops_add_u8
Computes the addition operation of x + y.
nstd_core_ops_add_u16
Computes the addition operation of x + y.
nstd_core_ops_add_u32
Computes the addition operation of x + y.
nstd_core_ops_add_u64
Computes the addition operation of x + y.
nstd_core_ops_add_uint
Computes the addition operation of x + y.
nstd_core_ops_div_i8
Computes the division operation of x / y.
nstd_core_ops_div_i16
Computes the division operation of x / y.
nstd_core_ops_div_i32
Computes the division operation of x / y.
nstd_core_ops_div_i64
Computes the division operation of x / y.
nstd_core_ops_div_int
Computes the division operation of x / y.
nstd_core_ops_div_u8
Computes the division operation of x / y.
nstd_core_ops_div_u16
Computes the division operation of x / y.
nstd_core_ops_div_u32
Computes the division operation of x / y.
nstd_core_ops_div_u64
Computes the division operation of x / y.
nstd_core_ops_div_uint
Computes the division operation of x / y.
nstd_core_ops_mul_i8
Computes the multiplication operation of x * y.
nstd_core_ops_mul_i16
Computes the multiplication operation of x * y.
nstd_core_ops_mul_i32
Computes the multiplication operation of x * y.
nstd_core_ops_mul_i64
Computes the multiplication operation of x * y.
nstd_core_ops_mul_int
Computes the multiplication operation of x * y.
nstd_core_ops_mul_u8
Computes the multiplication operation of x * y.
nstd_core_ops_mul_u16
Computes the multiplication operation of x * y.
nstd_core_ops_mul_u32
Computes the multiplication operation of x * y.
nstd_core_ops_mul_u64
Computes the multiplication operation of x * y.
nstd_core_ops_mul_uint
Computes the multiplication operation of x * y.
nstd_core_ops_neg_i8
Returns the negative value of x.
nstd_core_ops_neg_i16
Returns the negative value of x.
nstd_core_ops_neg_i32
Returns the negative value of x.
nstd_core_ops_neg_i64
Returns the negative value of x.
nstd_core_ops_neg_int
Returns the negative value of x.
nstd_core_ops_rem_i8
Computes the remainder of x / y.
nstd_core_ops_rem_i16
Computes the remainder of x / y.
nstd_core_ops_rem_i32
Computes the remainder of x / y.
nstd_core_ops_rem_i64
Computes the remainder of x / y.
nstd_core_ops_rem_int
Computes the remainder of x / y.
nstd_core_ops_rem_u8
Computes the remainder of x / y.
nstd_core_ops_rem_u16
Computes the remainder of x / y.
nstd_core_ops_rem_u32
Computes the remainder of x / y.
nstd_core_ops_rem_u64
Computes the remainder of x / y.
nstd_core_ops_rem_uint
Computes the remainder of x / y.
nstd_core_ops_shl_i8
Shifts value x y bits to the left.
nstd_core_ops_shl_i16
Shifts value x y bits to the left.
nstd_core_ops_shl_i32
Shifts value x y bits to the left.
nstd_core_ops_shl_i64
Shifts value x y bits to the left.
nstd_core_ops_shl_int
Shifts value x y bits to the left.
nstd_core_ops_shl_u8
Shifts value x y bits to the left.
nstd_core_ops_shl_u16
Shifts value x y bits to the left.
nstd_core_ops_shl_u32
Shifts value x y bits to the left.
nstd_core_ops_shl_u64
Shifts value x y bits to the left.
nstd_core_ops_shl_uint
Shifts value x y bits to the left.
nstd_core_ops_shr_i8
Shifts value x y bits to the right.
nstd_core_ops_shr_i16
Shifts value x y bits to the right.
nstd_core_ops_shr_i32
Shifts value x y bits to the right.
nstd_core_ops_shr_i64
Shifts value x y bits to the right.
nstd_core_ops_shr_int
Shifts value x y bits to the right.
nstd_core_ops_shr_u8
Shifts value x y bits to the right.
nstd_core_ops_shr_u16
Shifts value x y bits to the right.
nstd_core_ops_shr_u32
Shifts value x y bits to the right.
nstd_core_ops_shr_u64
Shifts value x y bits to the right.
nstd_core_ops_shr_uint
Shifts value x y bits to the right.
nstd_core_ops_sub_i8
Computes the subtraction operation of x - y.
nstd_core_ops_sub_i16
Computes the subtraction operation of x - y.
nstd_core_ops_sub_i32
Computes the subtraction operation of x - y.
nstd_core_ops_sub_i64
Computes the subtraction operation of x - y.
nstd_core_ops_sub_int
Computes the subtraction operation of x - y.
nstd_core_ops_sub_u8
Computes the subtraction operation of x - y.
nstd_core_ops_sub_u16
Computes the subtraction operation of x - y.
nstd_core_ops_sub_u32
Computes the subtraction operation of x - y.
nstd_core_ops_sub_u64
Computes the subtraction operation of x - y.
nstd_core_ops_sub_uint
Computes the subtraction operation of x - y.