pub enum Width {
D32,
D64,
D128,
}Expand description
One of the three decimal interchange formats.
Variants§
Implementations§
Source§impl Width
impl Width
Sourcepub const fn bias(self) -> i32
pub const fn bias(self) -> i32
What is added to the exponent to store it, which makes the smallest exponent zero.
Sourcepub const fn min_exponent(self) -> i32
pub const fn min_exponent(self) -> i32
The smallest exponent q a coefficient can have.
Sourcepub const fn max_exponent(self) -> i32
pub const fn max_exponent(self) -> i32
The largest exponent q a coefficient can have, IEEE’s emax - p + 1.
Sourcepub const fn max_coefficient(self) -> u128
pub const fn max_coefficient(self) -> u128
The largest coefficient, 10^p - 1.
Trait Implementations§
impl Copy for Width
impl Eq for Width
impl StructuralPartialEq for Width
Auto Trait Implementations§
impl Freeze for Width
impl RefUnwindSafe for Width
impl Send for Width
impl Sync for Width
impl Unpin for Width
impl UnsafeUnpin for Width
impl UnwindSafe for Width
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