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 more
sourceimpl<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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExtendedFloat<M>) -> bool
fn ne(&self, other: &ExtendedFloat<M>) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more