Trait EQSupported

Source
pub trait EQSupported<T: PrimInt>:
    PrimInt
    + Display
    + ConstZero
    + ConstOne
    + SignHelper<T>
    + TryInto<i64>
    + TryInto<i128>
    + TryInto<u64>
    + TryInto<u128> {
    const EXPONENT_BASE: T;
}
Expand description

Marker trait indicating that a type is supported as a storage type for EngineeringQuantity.

Required Associated Constants§

Source

const EXPONENT_BASE: T

Always 1000 (used internally)

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 EQSupported<i16> for i16

Source§

const EXPONENT_BASE: i16 = 1_000i16

Source§

impl EQSupported<i32> for i32

Source§

const EXPONENT_BASE: i32 = 1_000i32

Source§

impl EQSupported<i64> for i64

Source§

const EXPONENT_BASE: i64 = 1_000i64

Source§

impl EQSupported<i128> for i128

Source§

const EXPONENT_BASE: i128 = 1_000i128

Source§

impl EQSupported<isize> for isize

Source§

const EXPONENT_BASE: isize = 1_000isize

Source§

impl EQSupported<u16> for u16

Source§

const EXPONENT_BASE: u16 = 1_000u16

Source§

impl EQSupported<u32> for u32

Source§

const EXPONENT_BASE: u32 = 1_000u32

Source§

impl EQSupported<u64> for u64

Source§

const EXPONENT_BASE: u64 = 1_000u64

Source§

impl EQSupported<u128> for u128

Source§

const EXPONENT_BASE: u128 = 1_000u128

Source§

impl EQSupported<usize> for usize

Source§

const EXPONENT_BASE: usize = 1_000usize

Implementors§