pub enum FloatKind {
Float,
Double,
LongDouble,
}Expand description
The real floating types.
The decimal floating types from C23 are deferred past 1.0 by spec/19-open-questions.md
and are deliberately absent rather than present and unimplemented.
Variants§
Float
float, always the binary32 format.
Double
double, always the binary64 format.
LongDouble
long double, whose format is a target property and is not always distinct from
double. It is 80 bits of x87 on SysV x86-64, quad precision on AArch64 Linux, and
the same as double on Apple and Windows.
Implementations§
Trait Implementations§
impl Copy for FloatKind
impl Eq for FloatKind
Source§impl Ord for FloatKind
impl Ord for FloatKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for FloatKind
impl PartialOrd for FloatKind
impl StructuralPartialEq for FloatKind
Auto Trait Implementations§
impl Freeze for FloatKind
impl RefUnwindSafe for FloatKind
impl Send for FloatKind
impl Sync for FloatKind
impl Unpin for FloatKind
impl UnsafeUnpin for FloatKind
impl UnwindSafe for FloatKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more