pub trait Num {
// Required methods
fn from_u8(x: u8) -> Self;
fn checked_mul_ext(&mut self, x: u8) -> bool;
fn checked_add_ext(&mut self, x: u8) -> bool;
fn checked_sub_ext(&mut self, x: u8) -> bool;
}
Required Methods§
fn from_u8(x: u8) -> Self
Sourcefn checked_mul_ext(&mut self, x: u8) -> bool
fn checked_mul_ext(&mut self, x: u8) -> bool
Returns true
on overflow
Sourcefn checked_add_ext(&mut self, x: u8) -> bool
fn checked_add_ext(&mut self, x: u8) -> bool
Returns true
on overflow
Sourcefn checked_sub_ext(&mut self, x: u8) -> bool
fn checked_sub_ext(&mut self, x: u8) -> bool
Returns true
on overflow
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.