Trait Number

Source
pub trait Number:
    Num
    + WrappingAdd
    + FromPrimitive
    + ToPrimitive
    + Copy { }
Expand description

Represents a number type.

This allows to clients to create hashers that emit hashes of different sizes (usize, u64, and u128 when std::Hasher supports emitting it).

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.

Implementors§