Trait lexical_util::num::Number

source ·
pub trait Number:
    Default
    + Primitive
    + Add<Output = Self>
    + AddAssign
    + Div<Output = Self>
    + DivAssign
    + Mul<Output = Self>
    + MulAssign
    + Rem<Output = Self>
    + RemAssign
    + Sub<Output = Self>
    + SubAssign {
    const IS_SIGNED: bool;
}
Expand description

Numerical type trait.

Required Associated Constants§

source

const IS_SIGNED: bool

If the number is a signed type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Number for f32

source§

const IS_SIGNED: bool = true

source§

impl Number for f64

source§

const IS_SIGNED: bool = true

source§

impl Number for i8

source§

const IS_SIGNED: bool = true

source§

impl Number for i16

source§

const IS_SIGNED: bool = true

source§

impl Number for i32

source§

const IS_SIGNED: bool = true

source§

impl Number for i64

source§

const IS_SIGNED: bool = true

source§

impl Number for i128

source§

const IS_SIGNED: bool = true

source§

impl Number for isize

source§

const IS_SIGNED: bool = true

source§

impl Number for u8

source§

const IS_SIGNED: bool = false

source§

impl Number for u16

source§

const IS_SIGNED: bool = false

source§

impl Number for u32

source§

const IS_SIGNED: bool = false

source§

impl Number for u64

source§

const IS_SIGNED: bool = false

source§

impl Number for u128

source§

const IS_SIGNED: bool = false

source§

impl Number for usize

source§

const IS_SIGNED: bool = false

Implementors§