pub enum Float {
F16,
F16B,
F32,
F64,
X87F80,
F128,
PpcF128,
}Expand description
Floating-point types.
Variants§
F16
F16B
f16b. This is not a builtin type in Rust (it is exposed as a lang item),
but it is a builtin type in LLVM so needs to be explicitly represented
in the backend.
F32
F64
X87F80
x87_f80. This is not a builtin type in Rust (it is exposed as a lang item),
but it is a builtin type in LLVM so needs to be explicitly represented
in the backend.
Here we define the 80-bit scalar value that corresponds to the x87_f80_raw lang item.
In core::arch::{x86, x86_64} this type is wrapped by the x87_f80 lang item that adds
the proper alignment and bumps the size to either 12 or 16 bytes depending on the target.
Only used on x86 and x86_64 targets.
F128
PpcF128
ppcf128. This is not a builtin type in Rust (it is exposed as a lang item),
but it is a builtin type in LLVM so needs to be explicitly represented
in the backend.
Only used on powerpc and powerpc64 targets.
Implementations§
Trait Implementations§
impl Copy for Float
impl Eq for Float
Source§impl Ord for Float
impl Ord for Float
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Float
impl PartialOrd for Float
Source§impl StableHash for Float
impl StableHash for Float
fn stable_hash<__Hcx: StableHashCtxt>( &self, __hcx: &mut __Hcx, __hasher: &mut StableHasher, )
impl StructuralPartialEq for Float
Auto Trait Implementations§
impl DynSend for Float
impl DynSync for Float
impl Forget for Float
impl Freeze for Float
impl Move for Float
impl RefUnwindSafe for Float
impl Send for Float
impl Sync for Float
impl Unpin for Float
impl UnsafeUnpin for Float
impl UnwindSafe for Float
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
F16: 0 bytesF16B: 0 bytesF32: 0 bytesF64: 0 bytesX87F80: 0 bytesF128: 0 bytesPpcF128: 0 bytes