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
sourceimpl<M: UnsignedInteger> ExtendedFloat<M>
impl<M: UnsignedInteger> ExtendedFloat<M>
Trait Implementations
sourceimpl<M: Clone + UnsignedInteger> Clone for ExtendedFloat<M>
impl<M: Clone + UnsignedInteger> Clone for ExtendedFloat<M>
sourcefn clone(&self) -> ExtendedFloat<M>
fn clone(&self) -> ExtendedFloat<M>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<M: Debug + UnsignedInteger> Debug for ExtendedFloat<M>
impl<M: Debug + UnsignedInteger> Debug for ExtendedFloat<M>
sourceimpl<M: PartialEq + UnsignedInteger> PartialEq<ExtendedFloat<M>> for ExtendedFloat<M>
impl<M: PartialEq + UnsignedInteger> PartialEq<ExtendedFloat<M>> for ExtendedFloat<M>
sourcefn eq(&self, other: &ExtendedFloat<M>) -> bool
fn eq(&self, other: &ExtendedFloat<M>) -> bool
impl<M: Copy + UnsignedInteger> Copy for ExtendedFloat<M>
impl<M: Eq + UnsignedInteger> Eq for ExtendedFloat<M>
impl<M: UnsignedInteger> StructuralEq for ExtendedFloat<M>
impl<M: UnsignedInteger> StructuralPartialEq for ExtendedFloat<M>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more