pub unsafe trait FloatPrimitive: Sized + Copy {
type UInt: BitOr<Output = Self::UInt> + BitAnd<Output = Self::UInt> + Not<Output = Self::UInt>;
const SIGN_MASK: Self::UInt;
// Required methods
fn to_bits(self) -> Self::UInt;
fn from_bits(bits: Self::UInt) -> Self;
}🔬This is a nightly-only experimental API. (
core_intrinsics)Expand description
Required Associated Constants§
Required Associated Types§
type UInt: BitOr<Output = Self::UInt> + BitAnd<Output = Self::UInt> + Not<Output = Self::UInt>
🔬This is a nightly-only experimental API. (
core_intrinsics)Required Methods§
fn to_bits(self) -> Self::UInt
🔬This is a nightly-only experimental API. (
core_intrinsics)fn from_bits(bits: Self::UInt) -> Self
🔬This is a nightly-only experimental API. (
core_intrinsics)Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".