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
Object Safety§
This trait is not object safe.