pub struct Extended {
pub sign_exponent: u16,
pub fraction: u64,
}Expand description
An 80-bit extended floating-point number.
See Apple Numerics Manual, 2nd edition (1988), p. 18 “SANE Data Types”.
Fields§
§sign_exponent: u16§fraction: u64Implementations§
Source§impl Extended
impl Extended
Sourcepub fn from_be_bytes(b: [u8; 10]) -> Self
pub fn from_be_bytes(b: [u8; 10]) -> Self
Create an extended 80-bit floating-point number from its big endian representation.
Sourcepub fn from_le_bytes(b: [u8; 10]) -> Self
pub fn from_le_bytes(b: [u8; 10]) -> Self
Create an extended 80-bit floating-point number from its little endian representation.
Sourcepub fn to_be_bytes(&self) -> [u8; 10]
pub fn to_be_bytes(&self) -> [u8; 10]
Convert an 80-bit floating-point number to its big endian representation.
Sourcepub fn to_le_bytes(&self) -> [u8; 10]
pub fn to_le_bytes(&self) -> [u8; 10]
Convert an 80-bit floating-point number to its big endian representation.
Trait Implementations§
impl Copy for Extended
impl StructuralPartialEq for Extended
Auto Trait Implementations§
impl Freeze for Extended
impl RefUnwindSafe for Extended
impl Send for Extended
impl Sync for Extended
impl Unpin for Extended
impl UnwindSafe for Extended
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