Struct gmp::mpf::Mpf [] [src]

pub struct Mpf {
    // some 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 Drop for Mpf
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

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) -> bool
1.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) -> bool
1.0.0

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, other: &Rhs) -> bool
1.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) -> bool
1.0.0

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, other: &Rhs) -> bool
1.0.0

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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> 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<'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> 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<'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> 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<'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> 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<'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<'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 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> 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 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> 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 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> 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 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