pub struct Mpf { /* private fields */ }Implementations§
Source§impl Mpf
impl Mpf
pub unsafe fn inner(&self) -> mpf_srcptr
pub unsafe fn inner_mut(&mut self) -> mpf_ptr
pub fn zero() -> Mpf
pub fn new(precision: usize) -> Mpf
pub fn set(&mut self, other: &Mpf)
pub fn set_z(&mut self, other: &Mpz)
pub fn set_q(&mut self, other: &Mpq)
pub fn get_prec(&self) -> usize
pub fn set_prec(&mut self, precision: usize)
pub fn set_from_str(&mut self, string: &str, base: i32)
pub fn set_from_si(&mut self, int: i64)
pub fn get_str(&mut self, n_digits: i32, base: i32, exp: &mut c_long) -> String
pub fn abs(&self) -> Mpf
pub fn ceil(&self) -> Mpf
pub fn floor(&self) -> Mpf
pub fn trunc(&self) -> Mpf
pub fn reldiff(&self, other: &Mpf) -> Mpf
pub fn sqrt(self) -> Mpf
pub fn sign(&self) -> Sign
Trait Implementations§
Source§impl<'a> AddAssign for Mpf
impl<'a> AddAssign for Mpf
Source§fn add_assign(&mut self, other: Mpf)
fn add_assign(&mut self, other: Mpf)
Performs the
+= operation. Read moreSource§impl<'a> AddAssign<&'a Mpf> for Mpf
impl<'a> AddAssign<&'a Mpf> for Mpf
Source§fn add_assign(&mut self, other: &Mpf)
fn add_assign(&mut self, other: &Mpf)
Performs the
+= operation. Read moreSource§impl<'a> DivAssign for Mpf
impl<'a> DivAssign for Mpf
Source§fn div_assign(&mut self, other: Mpf)
fn div_assign(&mut self, other: Mpf)
Performs the
/= operation. Read moreSource§impl<'a> DivAssign<&'a Mpf> for Mpf
impl<'a> DivAssign<&'a Mpf> for Mpf
Source§fn div_assign(&mut self, other: &Mpf)
fn div_assign(&mut self, other: &Mpf)
Performs the
/= operation. Read moreimpl Eq for Mpf
Source§impl<'a> MulAssign for Mpf
impl<'a> MulAssign for Mpf
Source§fn mul_assign(&mut self, other: Mpf)
fn mul_assign(&mut self, other: Mpf)
Performs the
*= operation. Read moreSource§impl<'a> MulAssign<&'a Mpf> for Mpf
impl<'a> MulAssign<&'a Mpf> for Mpf
Source§fn mul_assign(&mut self, other: &Mpf)
fn mul_assign(&mut self, other: &Mpf)
Performs the
*= operation. Read moreSource§impl Ord for Mpf
impl Ord for Mpf
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Mpf
impl PartialOrd for Mpf
impl Send for Mpf
Source§impl<'a> SubAssign for Mpf
impl<'a> SubAssign for Mpf
Source§fn sub_assign(&mut self, other: Mpf)
fn sub_assign(&mut self, other: Mpf)
Performs the
-= operation. Read moreSource§impl<'a> SubAssign<&'a Mpf> for Mpf
impl<'a> SubAssign<&'a Mpf> for Mpf
Source§fn sub_assign(&mut self, other: &Mpf)
fn sub_assign(&mut self, other: &Mpf)
Performs the
-= operation. Read moreimpl Sync for Mpf
Auto Trait Implementations§
impl Freeze for Mpf
impl RefUnwindSafe for Mpf
impl Unpin for Mpf
impl UnsafeUnpin for Mpf
impl UnwindSafe for Mpf
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