Skip to main content

ReadNumberHelper

Trait ReadNumberHelper 

Source
trait ReadNumberHelper: Sized {
    const ZERO: Self;

    // Required methods
    fn checked_mul(&self, other: u32) -> Option<Self>;
    fn checked_add(&self, other: u32) -> Option<Self>;
}

Required Associated Constants§

Source

const ZERO: Self

Required Methods§

Source

fn checked_mul(&self, other: u32) -> Option<Self>

Source

fn checked_add(&self, other: u32) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ReadNumberHelper for u8

Source§

const ZERO: Self = 0

Source§

impl ReadNumberHelper for u16

Source§

const ZERO: Self = 0

Source§

impl ReadNumberHelper for u32

Source§

const ZERO: Self = 0