Trait arithmetic_eval::Number

source ·
pub trait Number: Clone + 'static { }
Expand description

Marker trait for possible literals.

This trait is somewhat of a crutch, necessary to ensure that function wrappers can accept number arguments and distinguish them from other types (booleans, vectors, tuples, etc.).

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Number for f32

source§

impl Number for f64

source§

impl Number for i8

source§

impl Number for i16

source§

impl Number for i32

source§

impl Number for i64

source§

impl Number for i128

source§

impl Number for u8

source§

impl Number for u16

source§

impl Number for u32

source§

impl Number for u64

source§

impl Number for u128

source§

impl Number for BigInt

source§

impl Number for BigUint

source§

impl Number for Complex32

source§

impl Number for Complex64

Implementors§