Trait ron::parse::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

Object Safety§

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§