FloatingPoint

Trait FloatingPoint 

Source
pub trait FloatingPoint: HasAfEnum {
    // Provided methods
    fn is_real() -> bool { ... }
    fn is_complex() -> bool { ... }
}
Expand description

Trait qualifier to accept either real or complex typed data

Provided Methods§

Source

fn is_real() -> bool

Use to check if trait implementor is real number

Source

fn is_complex() -> bool

Use to check if trait implementor is complex number

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

Source§

impl FloatingPoint for f64

Source§

impl FloatingPoint for Complex<f32>

Source§

impl FloatingPoint for Complex<f64>

Implementors§