Struct gmp::mpf::Mpf
[−]
[src]
pub struct Mpf { /* fields omitted */ }Methods
impl Mpf[src]
unsafe fn inner(&self) -> mpf_srcptr
unsafe fn inner_mut(&mut self) -> mpf_ptr
fn zero() -> Mpf
fn new(precision: usize) -> Mpf
fn set(&mut self, other: &Mpf)
fn set_z(&mut self, other: &Mpz)
fn set_q(&mut self, other: &Mpq)
fn get_prec(&self) -> usize
fn set_prec(&mut self, precision: usize)
fn set_from_str(&mut self, string: &str, base: i32)
fn set_from_si(&mut self, int: i64)
fn get_str(&mut self, n_digits: i32, base: i32, exp: &mut c_long) -> String
fn abs(&self) -> Mpf
fn ceil(&self) -> Mpf
fn floor(&self) -> Mpf
fn trunc(&self) -> Mpf
fn reldiff(&self, other: &Mpf) -> Mpf
fn sqrt(self) -> Mpf
Trait Implementations
impl Send for Mpf[src]
impl Sync for Mpf[src]
impl Drop for Mpf[src]
impl Clone for Mpf[src]
fn clone(&self) -> Mpf
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Eq for Mpf[src]
impl PartialEq for Mpf[src]
fn eq(&self, other: &Mpf) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Ord for Mpf[src]
fn cmp(&self, other: &Mpf) -> Ordering
This method returns an Ordering between self and other. Read more
impl PartialOrd for Mpf[src]
fn partial_cmp(&self, other: &Mpf) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a> Add<Mpf> for &'a Mpf[src]
type Output = Mpf
The resulting type after applying the + operator
fn add(self, other: Mpf) -> Mpf
The method for the + operator
impl<'a> Add<&'a Mpf> for Mpf[src]
type Output = Mpf
The resulting type after applying the + operator
fn add(self, other: &Mpf) -> Mpf
The method for the + operator
impl Add<Mpf> for Mpf[src]
type Output = Mpf
The resulting type after applying the + operator
fn add(self, other: Mpf) -> Mpf
The method for the + operator
impl<'a, 'b> Add<&'a Mpf> for &'b Mpf[src]
type Output = Mpf
The resulting type after applying the + operator
fn add(self, other: &Mpf) -> Mpf
The method for the + operator
impl<'a> AddAssign<Mpf> for Mpf[src]
fn add_assign(&mut self, other: Mpf)
The method for the += operator
impl<'a> AddAssign<&'a Mpf> for Mpf[src]
fn add_assign(&mut self, other: &Mpf)
The method for the += operator
impl<'a> Sub<Mpf> for &'a Mpf[src]
type Output = Mpf
The resulting type after applying the - operator
fn sub(self, other: Mpf) -> Mpf
The method for the - operator
impl<'a> Sub<&'a Mpf> for Mpf[src]
type Output = Mpf
The resulting type after applying the - operator
fn sub(self, other: &Mpf) -> Mpf
The method for the - operator
impl Sub<Mpf> for Mpf[src]
type Output = Mpf
The resulting type after applying the - operator
fn sub(self, other: Mpf) -> Mpf
The method for the - operator
impl<'a, 'b> Sub<&'a Mpf> for &'b Mpf[src]
type Output = Mpf
The resulting type after applying the - operator
fn sub(self, other: &Mpf) -> Mpf
The method for the - operator
impl<'a> SubAssign<Mpf> for Mpf[src]
fn sub_assign(&mut self, other: Mpf)
The method for the -= operator
impl<'a> SubAssign<&'a Mpf> for Mpf[src]
fn sub_assign(&mut self, other: &Mpf)
The method for the -= operator
impl<'a> Mul<Mpf> for &'a Mpf[src]
type Output = Mpf
The resulting type after applying the * operator
fn mul(self, other: Mpf) -> Mpf
The method for the * operator
impl<'a> Mul<&'a Mpf> for Mpf[src]
type Output = Mpf
The resulting type after applying the * operator
fn mul(self, other: &Mpf) -> Mpf
The method for the * operator
impl Mul<Mpf> for Mpf[src]
type Output = Mpf
The resulting type after applying the * operator
fn mul(self, other: Mpf) -> Mpf
The method for the * operator
impl<'a, 'b> Mul<&'a Mpf> for &'b Mpf[src]
type Output = Mpf
The resulting type after applying the * operator
fn mul(self, other: &Mpf) -> Mpf
The method for the * operator
impl<'a> MulAssign<Mpf> for Mpf[src]
fn mul_assign(&mut self, other: Mpf)
The method for the *= operator
impl<'a> MulAssign<&'a Mpf> for Mpf[src]
fn mul_assign(&mut self, other: &Mpf)
The method for the *= operator
impl<'a> Div<Mpf> for &'a Mpf[src]
type Output = Mpf
The resulting type after applying the / operator
fn div(self, other: Mpf) -> Mpf
The method for the / operator
impl<'a> Div<&'a Mpf> for Mpf[src]
type Output = Mpf
The resulting type after applying the / operator
fn div(self, other: &Mpf) -> Mpf
The method for the / operator
impl Div<Mpf> for Mpf[src]
type Output = Mpf
The resulting type after applying the / operator
fn div(self, other: Mpf) -> Mpf
The method for the / operator
impl<'a, 'b> Div<&'a Mpf> for &'b Mpf[src]
type Output = Mpf
The resulting type after applying the / operator
fn div(self, other: &Mpf) -> Mpf
The method for the / operator
impl<'a> DivAssign<Mpf> for Mpf[src]
fn div_assign(&mut self, other: Mpf)
The method for the /= operator
impl<'a> DivAssign<&'a Mpf> for Mpf[src]
fn div_assign(&mut self, other: &Mpf)
The method for the /= operator
impl<'b> Neg for &'b Mpf[src]
type Output = Mpf
The resulting type after applying the - operator
fn neg(self) -> Mpf
The method for the unary - operator
impl Neg for Mpf[src]
type Output = Mpf
The resulting type after applying the - operator
fn neg(self) -> Mpf
The method for the unary - operator
impl Zero for Mpf[src]
fn zero() -> Mpf
Returns the additive identity element of Self, 0. Read more
fn is_zero(&self) -> bool
Returns true if self is equal to the additive identity.