pub trait FpClassify: Sized {
// Required method
fn classify(&self) -> FpCategory;
// Provided methods
fn is_zero(&self) -> bool { ... }
fn is_nan(&self) -> bool { ... }
fn is_infinite(&self) -> bool { ... }
fn is_subnormal(&self) -> bool { ... }
fn is_normal(&self) -> bool { ... }
}Required Methods§
fn classify(&self) -> FpCategory
Provided Methods§
fn is_zero(&self) -> bool
fn is_nan(&self) -> bool
fn is_infinite(&self) -> bool
fn is_subnormal(&self) -> bool
fn is_normal(&self) -> bool
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.