IntValue

Trait IntValue 

Source
pub trait IntValue:
    Clone
    + Display
    + FromStr
    + Ord {
    // Required methods
    fn increment(&self) -> Self;
    fn decrement(&self) -> Self;
}
Expand description

A contract that must be observed for the value in an IntAtomic.

Implementations are provided for signed machine integers.

Required Methods§

Source

fn increment(&self) -> Self

Source

fn decrement(&self) -> Self

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 IntValue for i8

Source§

fn increment(&self) -> Self

Source§

fn decrement(&self) -> Self

Source§

impl IntValue for i16

Source§

fn increment(&self) -> Self

Source§

fn decrement(&self) -> Self

Source§

impl IntValue for i32

Source§

fn increment(&self) -> Self

Source§

fn decrement(&self) -> Self

Source§

impl IntValue for i64

Source§

fn increment(&self) -> Self

Source§

fn decrement(&self) -> Self

Implementors§