pub trait TryMul<RHS>: Sized {
// Required method
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.