ron::parse

Trait Num

Source
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§

Source

fn from_u8(x: u8) -> Self

Source

fn checked_mul_ext(&mut self, x: u8) -> bool

Returns true on overflow

Source

fn checked_add_ext(&mut self, x: u8) -> bool

Returns true on overflow

Source

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.

Implementations on Foreign Types§

Source§

impl Num for i8

Source§

fn from_u8(x: u8) -> Self

Source§

fn checked_mul_ext(&mut self, x: u8) -> bool

Source§

fn checked_add_ext(&mut self, x: u8) -> bool

Source§

fn checked_sub_ext(&mut self, x: u8) -> bool

Source§

impl Num for i16

Source§

fn from_u8(x: u8) -> Self

Source§

fn checked_mul_ext(&mut self, x: u8) -> bool

Source§

fn checked_add_ext(&mut self, x: u8) -> bool

Source§

fn checked_sub_ext(&mut self, x: u8) -> bool

Source§

impl Num for i32

Source§

fn from_u8(x: u8) -> Self

Source§

fn checked_mul_ext(&mut self, x: u8) -> bool

Source§

fn checked_add_ext(&mut self, x: u8) -> bool

Source§

fn checked_sub_ext(&mut self, x: u8) -> bool

Source§

impl Num for i64

Source§

fn from_u8(x: u8) -> Self

Source§

fn checked_mul_ext(&mut self, x: u8) -> bool

Source§

fn checked_add_ext(&mut self, x: u8) -> bool

Source§

fn checked_sub_ext(&mut self, x: u8) -> bool

Source§

impl Num for u8

Source§

fn from_u8(x: u8) -> Self

Source§

fn checked_mul_ext(&mut self, x: u8) -> bool

Source§

fn checked_add_ext(&mut self, x: u8) -> bool

Source§

fn checked_sub_ext(&mut self, x: u8) -> bool

Source§

impl Num for u16

Source§

fn from_u8(x: u8) -> Self

Source§

fn checked_mul_ext(&mut self, x: u8) -> bool

Source§

fn checked_add_ext(&mut self, x: u8) -> bool

Source§

fn checked_sub_ext(&mut self, x: u8) -> bool

Source§

impl Num for u32

Source§

fn from_u8(x: u8) -> Self

Source§

fn checked_mul_ext(&mut self, x: u8) -> bool

Source§

fn checked_add_ext(&mut self, x: u8) -> bool

Source§

fn checked_sub_ext(&mut self, x: u8) -> bool

Source§

impl Num for u64

Source§

fn from_u8(x: u8) -> Self

Source§

fn checked_mul_ext(&mut self, x: u8) -> bool

Source§

fn checked_add_ext(&mut self, x: u8) -> bool

Source§

fn checked_sub_ext(&mut self, x: u8) -> bool

Implementors§