NumericDataType

Trait NumericDataType 

Source
pub trait NumericDataType:
    RawDataType
    + ToPrimitive
    + NumCast
    + From<bool>
    + Sum
    + Product
    + SubAssign
    + Sub<Output = Self>
    + Div<Output = Self>
    + MulAdd<Output = Self>
    + DotProduct
    + ReduceSum
    + ReduceProduct
    + ReduceMin
    + ReduceMax
    + ReduceMinMagnitude
    + ReduceMaxMagnitude
    + BinaryOpAdd
    + BinaryOpSub
    + BinaryOpMul {
    type AsFloatType: FloatDataType;

    // Provided methods
    fn to_float(&self) -> Self::AsFloatType { ... }
    fn ceil(&self) -> Self { ... }
    fn floor(&self) -> Self { ... }
}

Required Associated Types§

Provided Methods§

Source

fn to_float(&self) -> Self::AsFloatType

Source

fn ceil(&self) -> Self

Source

fn floor(&self) -> Self

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 NumericDataType for f32

Source§

type AsFloatType = f32

Source§

fn ceil(&self) -> Self

Source§

fn floor(&self) -> Self

Source§

impl NumericDataType for f64

Source§

type AsFloatType = f64

Source§

fn ceil(&self) -> Self

Source§

fn floor(&self) -> Self

Source§

impl NumericDataType for i8

Source§

impl NumericDataType for i16

Source§

impl NumericDataType for i32

Source§

impl NumericDataType for i64

Source§

impl NumericDataType for i128

Source§

impl NumericDataType for isize

Source§

impl NumericDataType for u8

Source§

impl NumericDataType for u16

Source§

impl NumericDataType for u32

Source§

impl NumericDataType for u64

Source§

impl NumericDataType for u128

Source§

impl NumericDataType for usize

Implementors§