pub struct FloatType {
pub format: Format,
pub size: u64,
pub align: u64,
}Expand description
A floating point type, as the two separate facts it is.
Fields§
§format: FormatHow the bits mean a number.
size: u64How many bytes it takes in memory, which is not the format’s width.
align: u64What it is aligned to, in bytes, which is not always its size: an x87 long double is
twelve bytes aligned to four on i386 and sixteen aligned to sixteen on x86-64, and it is
the same eighty bits of value both times.
Trait Implementations§
impl Copy for FloatType
impl Eq for FloatType
impl StructuralPartialEq for FloatType
Auto Trait Implementations§
impl Freeze for FloatType
impl RefUnwindSafe for FloatType
impl Send for FloatType
impl Sync for FloatType
impl Unpin for FloatType
impl UnsafeUnpin for FloatType
impl UnwindSafe for FloatType
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