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

pub struct Mpf { /* fields omitted */ }

Implementations

impl Mpf[src]

pub unsafe fn inner(&self) -> mpf_srcptr[src]

pub unsafe fn inner_mut(&mut self) -> mpf_ptr[src]

pub fn zero() -> Mpf[src]

pub fn new(precision: usize) -> Mpf[src]

pub fn set(&mut self, other: &Mpf)[src]

pub fn set_z(&mut self, other: &Mpz)[src]

pub fn set_q(&mut self, other: &Mpq)[src]

pub fn get_prec(&self) -> usize[src]

pub fn set_prec(&mut self, precision: usize)[src]

pub fn set_from_str(&mut self, string: &str, base: i32)[src]

pub fn set_from_si(&mut self, int: i64)[src]

pub fn get_str(&mut self, n_digits: i32, base: i32, exp: &mut c_long) -> String[src]

pub fn abs(&self) -> Mpf[src]

pub fn ceil(&self) -> Mpf[src]

pub fn floor(&self) -> Mpf[src]

pub fn trunc(&self) -> Mpf[src]

pub fn reldiff(&self, other: &Mpf) -> Mpf[src]

pub fn sqrt(self) -> Mpf[src]

pub fn sign(&self) -> Sign[src]

Trait Implementations

impl<'a> Add<&'a Mpf> for Mpf[src]

type Output = Mpf

The resulting type after applying the + operator.

impl<'a, 'b> Add<&'a Mpf> for &'b Mpf[src]

type Output = Mpf

The resulting type after applying the + operator.

impl<'a> Add<Mpf> for &'a Mpf[src]

type Output = Mpf

The resulting type after applying the + operator.

impl Add<Mpf> for Mpf[src]

type Output = Mpf

The resulting type after applying the + operator.

impl<'a> AddAssign<&'a Mpf> for Mpf[src]

impl<'a> AddAssign<Mpf> for Mpf[src]

impl Clone for Mpf[src]

impl<'a> Div<&'a Mpf> for Mpf[src]

type Output = Mpf

The resulting type after applying the / operator.

impl<'a, 'b> Div<&'a Mpf> for &'b Mpf[src]

type Output = Mpf

The resulting type after applying the / operator.

impl<'a> Div<Mpf> for &'a Mpf[src]

type Output = Mpf

The resulting type after applying the / operator.

impl Div<Mpf> for Mpf[src]

type Output = Mpf

The resulting type after applying the / operator.

impl<'a> DivAssign<&'a Mpf> for Mpf[src]

impl<'a> DivAssign<Mpf> for Mpf[src]

impl Drop for Mpf[src]

impl Eq for Mpf[src]

impl<'a> Mul<&'a Mpf> for Mpf[src]

type Output = Mpf

The resulting type after applying the * operator.

impl<'a, 'b> Mul<&'a Mpf> for &'b Mpf[src]

type Output = Mpf

The resulting type after applying the * operator.

impl<'a> Mul<Mpf> for &'a Mpf[src]

type Output = Mpf

The resulting type after applying the * operator.

impl Mul<Mpf> for Mpf[src]

type Output = Mpf

The resulting type after applying the * operator.

impl<'a> MulAssign<&'a Mpf> for Mpf[src]

impl<'a> MulAssign<Mpf> for Mpf[src]

impl<'b> Neg for &'b Mpf[src]

type Output = Mpf

The resulting type after applying the - operator.

impl Neg for Mpf[src]

type Output = Mpf

The resulting type after applying the - operator.

impl One for Mpf[src]

impl Ord for Mpf[src]

impl PartialEq<Mpf> for Mpf[src]

impl PartialOrd<Mpf> for Mpf[src]

impl Send for Mpf[src]

impl<'a> Sub<&'a Mpf> for Mpf[src]

type Output = Mpf

The resulting type after applying the - operator.

impl<'a, 'b> Sub<&'a Mpf> for &'b Mpf[src]

type Output = Mpf

The resulting type after applying the - operator.

impl<'a> Sub<Mpf> for &'a Mpf[src]

type Output = Mpf

The resulting type after applying the - operator.

impl Sub<Mpf> for Mpf[src]

type Output = Mpf

The resulting type after applying the - operator.

impl<'a> SubAssign<&'a Mpf> for Mpf[src]

impl<'a> SubAssign<Mpf> for Mpf[src]

impl Sync for Mpf[src]

impl Zero for Mpf[src]

Auto Trait Implementations

impl RefUnwindSafe for Mpf

impl Unpin for Mpf

impl UnwindSafe for Mpf

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.