pub trait BaseEncoding: Copy {
const MAX_FINITE: Self;
const MIN_FINITE: Self;
const MIN_POSITIVE_NORMAL: Self;
const EPSILON: Self;
// Required methods
fn classify(self) -> FpCategory;
fn is_normal(self) -> bool;
fn is_sign_positive(self) -> bool;
fn is_sign_negative(self) -> bool;
fn signum(self) -> Self;
fn integer_decode(self) -> (u64, i16, i8);
}Expand description
A type with an IEEE 754 floating-point representation that exposes its basic encoding.
BaseEncoding types have a floating-point representation (binaryN), but may not support
nor expose other elements of the specification. This trait describes the most basic
non-computational elements of the encoding and does not specify the inhabitants of a type.
Required Associated Constants§
const MAX_FINITE: Self
const MIN_FINITE: Self
const MIN_POSITIVE_NORMAL: Self
const EPSILON: Self
Required Methods§
fn classify(self) -> FpCategory
fn is_normal(self) -> bool
fn is_sign_positive(self) -> bool
fn is_sign_negative(self) -> bool
fn signum(self) -> Self
fn integer_decode(self) -> (u64, i16, i8)
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.