Struct gmp::mpf::Mpf [−][src]
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.
fn add(self, other: &Mpf) -> Mpf
[src]
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
[src]
impl<'a> Add<Mpf> for &'a Mpf
[src]
type Output = Mpf
The resulting type after applying the +
operator.
fn add(self, other: Mpf) -> Mpf
[src]
impl Add<Mpf> for Mpf
[src]
type Output = Mpf
The resulting type after applying the +
operator.
fn add(self, other: Mpf) -> Mpf
[src]
impl<'a> AddAssign<&'a Mpf> for Mpf
[src]
fn add_assign(&mut self, other: &Mpf)
[src]
impl<'a> AddAssign<Mpf> for Mpf
[src]
fn add_assign(&mut self, other: 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.
fn div(self, other: &Mpf) -> Mpf
[src]
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
[src]
impl<'a> Div<Mpf> for &'a Mpf
[src]
type Output = Mpf
The resulting type after applying the /
operator.
fn div(self, other: Mpf) -> Mpf
[src]
impl Div<Mpf> for Mpf
[src]
type Output = Mpf
The resulting type after applying the /
operator.
fn div(self, other: Mpf) -> Mpf
[src]
impl<'a> DivAssign<&'a Mpf> for Mpf
[src]
fn div_assign(&mut self, other: &Mpf)
[src]
impl<'a> DivAssign<Mpf> for Mpf
[src]
fn div_assign(&mut self, other: 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.
fn mul(self, other: &Mpf) -> Mpf
[src]
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
[src]
impl<'a> Mul<Mpf> for &'a Mpf
[src]
type Output = Mpf
The resulting type after applying the *
operator.
fn mul(self, other: Mpf) -> Mpf
[src]
impl Mul<Mpf> for Mpf
[src]
type Output = Mpf
The resulting type after applying the *
operator.
fn mul(self, other: Mpf) -> Mpf
[src]
impl<'a> MulAssign<&'a Mpf> for Mpf
[src]
fn mul_assign(&mut self, other: &Mpf)
[src]
impl<'a> MulAssign<Mpf> for Mpf
[src]
fn mul_assign(&mut self, other: Mpf)
[src]
impl<'b> Neg for &'b Mpf
[src]
impl Neg for Mpf
[src]
impl One for Mpf
[src]
fn one() -> Mpf
[src]
pub fn set_one(&mut self)
[src]
pub fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
impl Ord for Mpf
[src]
fn cmp(&self, other: &Mpf) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Mpf> for Mpf
[src]
impl PartialOrd<Mpf> for Mpf
[src]
fn partial_cmp(&self, other: &Mpf) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Send for Mpf
[src]
impl<'a> Sub<&'a Mpf> for Mpf
[src]
type Output = Mpf
The resulting type after applying the -
operator.
fn sub(self, other: &Mpf) -> Mpf
[src]
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
[src]
impl<'a> Sub<Mpf> for &'a Mpf
[src]
type Output = Mpf
The resulting type after applying the -
operator.
fn sub(self, other: Mpf) -> Mpf
[src]
impl Sub<Mpf> for Mpf
[src]
type Output = Mpf
The resulting type after applying the -
operator.
fn sub(self, other: Mpf) -> Mpf
[src]
impl<'a> SubAssign<&'a Mpf> for Mpf
[src]
fn sub_assign(&mut self, other: &Mpf)
[src]
impl<'a> SubAssign<Mpf> for Mpf
[src]
fn sub_assign(&mut self, other: Mpf)
[src]
impl Sync for Mpf
[src]
impl Zero for Mpf
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,