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<ExtendedFloat<M>> for ExtendedFloat<M>
impl<M: PartialEq + UnsignedInteger> PartialEq<ExtendedFloat<M>> for ExtendedFloat<M>
source§fn eq(&self, other: &ExtendedFloat<M>) -> bool
fn eq(&self, other: &ExtendedFloat<M>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.