pub trait OverflowArithmetic {
    fn overflow_add(self, other: Self) -> Self;
fn overflow_sub(self, other: Self) -> Self;
fn overflow_mul(self, other: Self) -> Self;
fn overflow_div(self, other: Self) -> Self;
fn overflow_shl(self, other: Self) -> Self;
fn overflow_shr(self, other: Self) -> Self;
fn overflow_neg(self) -> Self;
fn overflow_rem(self, other: Self) -> Self; }
Expand description

A type cast trait used to do the integer arithmetic.

Required methods

Overflow add.

Overflow sub.

Overflow mul.

Overflow div.

Overflow shl.

Overflow shr.

Overflow neg.

Overflow rem.

Implementations on Foreign Types

Implementors