pub struct ExtendedFloat<M: UnsignedInteger> {
pub mant: M,
pub exp: i32,
}
Expand description
Extended precision floating-point type.
This doesn’t have any methods because it’s used for very different things for the Lemire, Bellepheron, and other algorithms. In Grisu, it’s an unbiased representation, for Lemire, it’s a biased representation.
Fields§
§mant: M
Mantissa for the extended-precision float.
exp: i32
Binary exponent for the extended-precision float.
Implementations§
Source§impl<M: UnsignedInteger> ExtendedFloat<M>
impl<M: UnsignedInteger> ExtendedFloat<M>
Trait Implementations§
Source§impl<M: Clone + UnsignedInteger> Clone for ExtendedFloat<M>
impl<M: Clone + UnsignedInteger> Clone for ExtendedFloat<M>
Source§fn clone(&self) -> ExtendedFloat<M>
fn clone(&self) -> ExtendedFloat<M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<M: Debug + UnsignedInteger> Debug for ExtendedFloat<M>
impl<M: Debug + UnsignedInteger> Debug for ExtendedFloat<M>
Source§impl<M: PartialEq + UnsignedInteger> PartialEq for ExtendedFloat<M>
impl<M: PartialEq + UnsignedInteger> PartialEq for ExtendedFloat<M>
impl<M: Copy + UnsignedInteger> Copy for ExtendedFloat<M>
impl<M: Eq + UnsignedInteger> Eq for ExtendedFloat<M>
impl<M: UnsignedInteger> StructuralPartialEq for ExtendedFloat<M>
Auto Trait Implementations§
impl<M> Freeze for ExtendedFloat<M>where
M: Freeze,
impl<M> RefUnwindSafe for ExtendedFloat<M>where
M: RefUnwindSafe,
impl<M> Send for ExtendedFloat<M>
impl<M> Sync for ExtendedFloat<M>
impl<M> Unpin for ExtendedFloat<M>where
M: Unpin,
impl<M> UnwindSafe for ExtendedFloat<M>where
M: UnwindSafe,
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