Skip to main content

BasicNum

Trait BasicNum 

Source
pub trait BasicNum {
    const MIN_VALUE: Self;
    const MAX_VALUE: Self;

    // Required methods
    fn dec(&self) -> Self;
    fn inc(&self) -> Self;
}
Expand description

Basic operations (increase decrease) for numbers

Required Associated Constants§

Source

const MIN_VALUE: Self

Source

const MAX_VALUE: Self

Required Methods§

Source

fn dec(&self) -> Self

Source

fn inc(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl BasicNum for i8

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for i16

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for i32

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for i64

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for i128

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for isize

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for u8

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for u16

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for u32

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for u64

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for u128

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Source§

impl BasicNum for usize

Source§

const MIN_VALUE: Self = Self::MIN

Source§

const MAX_VALUE: Self = Self::MAX

Source§

fn dec(&self) -> Self

Source§

fn inc(&self) -> Self

Implementors§