Struct lexical_util::extended_float::ExtendedFloat
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)