pub struct Approx {
pub value: BigInt,
pub precision: i32,
}Expand description
An approximation of a real number to a certain precision.
If the underlying value is x, then it is guaranteed that
|x - value*2^precision| < 2^precision.
Fields§
§value: BigInt§precision: i32Trait Implementations§
Auto Trait Implementations§
impl Freeze for Approx
impl RefUnwindSafe for Approx
impl Send for Approx
impl Sync for Approx
impl Unpin for Approx
impl UnwindSafe for Approx
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