pub trait TryMul<RHS>: Sized {
fn try_mul(self, rhs: RHS) -> Result<Self, ProgramError>;
}Expand description
Try to multiply, return an error on overflow
Required Methods
sourcefn try_mul(self, rhs: RHS) -> Result<Self, ProgramError>
fn try_mul(self, rhs: RHS) -> Result<Self, ProgramError>
Multiply