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§
Sourcefn is_complex() -> bool
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.