Skip to main content

Arithmetic

Trait Arithmetic 

Source
pub trait Arithmetic: Copy + PartialOrd { }
Expand description

Denotes an arithmetic type.

These include:

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 Arithmetic for bool

Source§

impl Arithmetic for f16

Available on crate feature f16 only.
Source§

impl Arithmetic for f32

Source§

impl Arithmetic for f64

Source§

impl Arithmetic for f128

Available on crate feature f128 only.
Source§

impl Arithmetic for i8

Source§

impl Arithmetic for i16

Source§

impl Arithmetic for i32

Source§

impl Arithmetic for i64

Source§

impl Arithmetic for i128

Source§

impl Arithmetic for isize

Source§

impl Arithmetic for u8

Source§

impl Arithmetic for u16

Source§

impl Arithmetic for u32

Source§

impl Arithmetic for u64

Source§

impl Arithmetic for u128

Source§

impl Arithmetic for usize

Implementors§