pub trait CostOverflowingMath<T> {
    // Required methods
    fn cost_overflow_mul(self, other: T) -> Result<T, CostErrors>;
    fn cost_overflow_add(self, other: T) -> Result<T, CostErrors>;
    fn cost_overflow_sub(self, other: T) -> Result<T, CostErrors>;
}

Required Methods§

source

fn cost_overflow_mul(self, other: T) -> Result<T, CostErrors>

source

fn cost_overflow_add(self, other: T) -> Result<T, CostErrors>

source

fn cost_overflow_sub(self, other: T) -> Result<T, CostErrors>

Implementations on Foreign Types§

source§

impl CostOverflowingMath<u64> for u64

Implementors§