Struct gmp_mpfr::Float
[−]
[src]
pub struct Float { /* fields omitted */ }
A multi-precision floating-point number.
The precision has to be set during construction.
Methods
impl Float
[src]
fn new_with_prec(prec: Prec) -> Float
Create a new floating-point number with the specified precision and with value 0.
fn prec(&self) -> Prec
Returns the precision of self
.
fn set_prec(&mut self, prec: Prec)
Sets the precision of self
exactly, rounding to nearest.
fn set_prec_round(&mut self, prec: Prec, round: Round)
Sets the precision of self
exactly, applying the specified
rounding method.
fn from_constant(prec: Prec, constant: Constant) -> Float
Constructs from a constant, rounding to the nearest.
fn from_constant_round(prec: Prec, constant: Constant, round: Round) -> Float
Constructs from a constant, applying the specified rounding method.
fn assign_constant(&mut self, constant: Constant)
Assigns the value of a constant, rounding to the nearest.
fn assign_constant_round(&mut self, constant: Constant, round: Round)
Assigns the value of a constant, applying the specified rounding method.
fn from_special(prec: Prec, special: Special) -> Float
Constructs from a special value.
fn assign_special(&mut self, special: Special)
Assigns the value of a special value.
fn to_integer(&self) -> Integer
Converts to an integer, rounding to the nearest.
fn to_integer_round(&self, round: Round) -> Integer
Converts to an integer, applying the specified rounding method.
fn to_u64(&self) -> u64
Converts to a u64
, rounding to the nearest.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_u32(&self) -> u32
Converts to a u64
, rounding to the nearest.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_i64(&self) -> i64
Converts to an i64
, rounding to the nearest.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_i32(&self) -> i32
Converts to an i32
, rounding to the nearest.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_f64(&self) -> f64
Converts to an f64
, rounding to the nearest.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_f32(&self) -> f32
Converts to an f32
, rounding to the nearest.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_u64_round(&self, round: Round) -> u64
Converts to a u64
, applying the specified rounding method.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_u32_round(&self, round: Round) -> u32
Converts to a u32
, applying the specified rounding method.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_i64_round(&self, round: Round) -> i64
Converts to an i64
, applying the specified rounding method.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_i32_round(&self, round: Round) -> i32
Converts to an i32
, applying the specified rounding method.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_f64_round(&self, round: Round) -> f64
Converts to an f64
, applying the specified rounding method.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn to_f32_round(&self, round: Round) -> f32
Converts to an f32
, applying the specified rounding method.
If the value is too small or too large for the target type,
the minimum or maximum value allowed is returned.
fn sqrt(self) -> Float
Computes the square root, rounding to the nearest.
fn sqrt_round(self, round: Round) -> Float
Computes the square root, applying the specified rounding method.
fn rec_sqrt(self) -> Float
Computes the reciprocal square root, rounding to the nearest.
fn rec_sqrt_round(self, round: Round) -> Float
Computes the reciprocal square root, applying the specified rounding method.
fn cbrt(self) -> Float
Computes the cube root, rounding to the nearest.
fn cbrt_round(self, round: Round) -> Float
Computes the cube root, applying the specified rounding method.
fn root(self, k: u64) -> Float
Computes the k
th root, rounding to the nearest.
fn root_round(self, k: u64, round: Round) -> Float
Computes the k
th root, applying the specified rounding method.
fn abs(self) -> Float
Computes the absolute value, rounding to the nearest.
fn abs_round(self, round: Round) -> Float
Computes the absolute value, applying the specified rounding method.
fn log(self) -> Float
Computes the natural logarithm, rounding to the nearest.
fn log_round(self, round: Round) -> Float
Computes the natural logarithm, applying the specified rounding method.
fn log2(self) -> Float
Computes the logarithm to base 2, rounding to the nearest.
fn log2_round(self, round: Round) -> Float
Computes the logarithm to base 2, applying the specified rounding method.
fn log10(self) -> Float
Computes the logarithm to base 10, rounding to the nearest.
fn log10_round(self, round: Round) -> Float
Computes the logarithm to base 10, applying the specified rounding method.
fn exp(self) -> Float
Computes the exponential, rounding to the nearest.
fn exp_round(self, round: Round) -> Float
Computes the exponential, applying the specified rounding method.
fn exp2(self) -> Float
Computes 2 to the power of self
, rounding to the nearest.
fn exp2_round(self, round: Round) -> Float
Computes 2 to the power of self
, applying the specified rounding method.
fn exp10(self) -> Float
Computes 10 to the power of self
, rounding to the nearest.
fn exp10_round(self, round: Round) -> Float
Computes 10 to the power of self
, applying the specified rounding method.
fn cos(self) -> Float
Computes the cosine, rounding to the nearest.
fn cos_round(self, round: Round) -> Float
Computes the cosine, applying the specified rounding method.
fn sin(self) -> Float
Computes the sine, rounding to the nearest.
fn sin_round(self, round: Round) -> Float
Computes the sine, applying the specified rounding method.
fn tan(self) -> Float
Computes the tangent, rounding to the nearest.
fn tan_round(self, round: Round) -> Float
Computes the tangent, applying the specified rounding method.
fn sin_cos(self) -> (Float, Float)
Computes the sine and cosine, rounding to the nearest.
Both returned values have the precision of self
.
fn sin_cos_round(self, round: Round) -> (Float, Float)
Computes the sine and cosine, applying the specified rounding
method.
Both returned values have the precision of self
.
fn sin_cos_buf(self, buf: Float) -> (Float, Float)
Computes the sine and cosine, rounding to the nearest.
The value of buf
is ignored, but its precision is not.
The returned sine has the precision of self
,
while the returned cosine has the precison of buf
.
fn sin_cos_round_buf(self, buf: Float, round: Round) -> (Float, Float)
Computes the sine and cosine, applying the specified rounding
method.
The value of buf
is ignored, but its precision is not.
The returned sine has the precision of self
,
while the returned cosine has the precison of buf
.
fn sec(self) -> Float
Computes the secant, rounding to the nearest.
fn sec_round(self, round: Round) -> Float
Computes the secant, applying the specified rounding method.
fn csc(self) -> Float
Computes the cosecant, rounding to the nearest.
fn csc_round(self, round: Round) -> Float
Computes the cosecant, applying the specified rounding method.
fn cot(self) -> Float
Computes the cotangent, rounding to the nearest.
fn cot_round(self, round: Round) -> Float
Computes the cotangent, applying the specified rounding method.
fn acos(self) -> Float
Computes the arc-cosine, rounding to the nearest.
fn acos_round(self, round: Round) -> Float
Computes the arc-cosine, applying the specified rounding method.
fn asin(self) -> Float
Computes the arc-sine, rounding to the nearest.
fn asin_round(self, round: Round) -> Float
Computes the arc-sine, applying the specified rounding method.
fn atan(self) -> Float
Computes the arc-tangent, rounding to the nearest.
fn atan_round(self, round: Round) -> Float
Computes the arc-tangent, applying the specified rounding method.
fn atan2(self, other: &Float) -> Float
Computes the arc-tangent2 of self
and other
, rounding to the nearest.
fn atan2_round(self, other: &Float, round: Round) -> Float
Computes the arc-tangent2 of self
and other
, applying the specified rounding method.
fn cosh(self) -> Float
Computes the hyperbolic cosine, rounding to the nearest.
fn cosh_round(self, round: Round) -> Float
Computes the hyperbolic cosine, applying the specified rounding method.
fn sinh(self) -> Float
Computes the hyperbolic sine, rounding to the nearest.
fn sinh_round(self, round: Round) -> Float
Computes the hyperbolic sine, applying the specified rounding method.
fn tanh(self) -> Float
Computes the hyperbolic tangent, rounding to the nearest.
fn tanh_round(self, round: Round) -> Float
Computes the hyperbolic tangent, applying the specified rounding method.
fn sinh_cosh(self) -> (Float, Float)
Computes the hyperbolic sine and cosine, rounding to the
nearest.
The returned hyperbolic sine has the precision of self
,
and the returned hyperbolic cosine has the precison of buf
.
fn sinh_cosh_round(self, round: Round) -> (Float, Float)
Computes the hyperbolic sine and cosine, applying the
specified rounding method.
The returned hyperbolic sine has the precision of self
,
and the returned hyperbolic cosine has the precison of buf
.
fn sinh_cosh_buf(self, buf: Float) -> (Float, Float)
Computes the hyperbolic sine and cosine, rounding to the
nearest.
The returned hyperbolic sine has the precision of self
,
and the returned hyperbolic cosine has the precison of buf
.
fn sinh_cosh_round_buf(self, buf: Float, round: Round) -> (Float, Float)
Computes the hyperbolic sine and cosine, applying the
specified rounding method.
The returned hyperbolic sine has the precision of self
,
and the returned hyperbolic cosine has the precison of buf
.
fn sech(self) -> Float
Computes the hyperbolic secant, rounding to the nearest.
fn sech_round(self, round: Round) -> Float
Computes the hyperbolic secant, applying the specified rounding method.
fn csch(self) -> Float
Computes the hyperbolic cosecant, rounding to the nearest.
fn csch_round(self, round: Round) -> Float
Computes the hyperbolic cosecant, applying the specified rounding method.
fn coth(self) -> Float
Computes the hyperbolic cotangent, rounding to the nearest.
fn coth_round(self, round: Round) -> Float
Computes the hyperbolic cotangent, applying the specified rounding method.
fn acosh(self) -> Float
Computes the inverse hyperbolic cosine, rounding to the nearest.
fn acosh_round(self, round: Round) -> Float
Computes the inverse hyperbolic cosine, applying the specified rounding method.
fn asinh(self) -> Float
Computes the inverse hyperbolic sine, rounding to the nearest.
fn asinh_round(self, round: Round) -> Float
Computes the inverse hyperbolic sine, applying the specified rounding method.
fn atanh(self) -> Float
Computes the inverse hyperbolic tangent, rounding to the nearest.
fn atanh_round(self, round: Round) -> Float
Computes the inverse hyperbolic tangent, applying the specified rounding method.
fn log1p(self) -> Float
Computes the natural logarithm of one plus self
, rounding to the nearest.
fn log1p_round(self, round: Round) -> Float
Computes the natural logarithm of one plus self
, applying the specified rounding method.
fn expm1(self) -> Float
Subtracts one from the exponential of self
, rounding to the nearest.
fn expm1_round(self, round: Round) -> Float
Subtracts one from the exponential of self
, applying the specified rounding method.
fn eint(self) -> Float
Computes the exponential integral of self
, rounding to the nearest.
fn eint_round(self, round: Round) -> Float
Computes the exponential integral of self
, applying the specified rounding method.
fn li2(self) -> Float
Computes the real part of the dilogarithm of self
, rounding to the nearest.
fn li2_round(self, round: Round) -> Float
Computes the real part of the dilogarithm of self
, applying the specified rounding method.
fn gamma(self) -> Float
Computes the value of the Gamma function on self
, rounding to the nearest.
fn gamma_round(self, round: Round) -> Float
Computes the value of the Gamma function on self
, applying the specified rounding method.
fn lngamma(self) -> Float
Computes the logarithm of the Gamma function on self
, rounding to the nearest.
fn lngamma_round(self, round: Round) -> Float
Computes the logarithm of the Gamma function on self
, applying the specified rounding method.
fn digamma(self) -> Float
Computes the value of the Digamma function on self
, rounding to the nearest.
fn digamma_round(self, round: Round) -> Float
Computes the value of the Digamma function on self
, applying the specified rounding method.
fn zeta(self) -> Float
Computes the value of the Riemann Zeta function on self
, rounding to the nearest.
fn zeta_round(self, round: Round) -> Float
Computes the value of the Riemann Zeta function on self
, applying the specified rounding method.
fn set_zeta(self, u: u64) -> Float
Computes the value of the Riemann Zeta function on self
,
rounding to the nearest.
fn set_zeta_round(self, u: u64, round: Round) -> Float
Computes the value of the Riemann Zeta function on self
,
applying the specified rounding method.
fn erf(self) -> Float
Computes the value of the error function on self
, rounding to the nearest.
fn erf_round(self, round: Round) -> Float
Computes the value of the error function on self
, applying the specified rounding method.
fn erfc(self) -> Float
Computes the value of the complementary error function on self
, rounding to the nearest.
fn erfc_round(self, round: Round) -> Float
Computes the value of the complementary error function on self
, applying the specified rounding method.
fn j0(self) -> Float
Computes the value of the first kind Bessel function of order 0 on self
, rounding to the nearest.
fn j0_round(self, round: Round) -> Float
Computes the value of the first kind Bessel function of order 0 on self
, applying the specified rounding method.
fn j1(self) -> Float
Computes the value of the first kind Bessel function of order 1 on self
, rounding to the nearest.
fn j1_round(self, round: Round) -> Float
Computes the value of the first kind Bessel function of order 1 on self
, applying the specified rounding method.
fn jn(self, n: i64) -> Float
Computes the value of the first kind Bessel function of order n
on self
, rounding to the nearest.
fn jn_round(self, n: i64, round: Round) -> Float
Computes the value of the first kind Bessel function of order n
on self
, applying the specified rounding method.
fn y0(self) -> Float
Computes the value of the second kind Bessel function of order 0 on self
, rounding to the nearest.
fn y0_round(self, round: Round) -> Float
Computes the value of the second kind Bessel function of order 0 on self
, applying the specified rounding method.
fn y1(self) -> Float
Computes the value of the second kind Bessel function of order 1 on self
, rounding to the nearest.
fn y1_round(self, round: Round) -> Float
Computes the value of the second kind Bessel function of order 1 on self
, applying the specified rounding method.
fn yn(self, n: i64) -> Float
Computes the value of the second kind Bessel function of order n
on self
, rounding to the nearest.
fn yn_round(self, n: i64, round: Round) -> Float
Computes the value of the second kind Bessel function of order n
on self
, applying the specified rounding method.
fn agm(self, other: &Float) -> Float
Computes the arithmetic-geometric mean of self
and other
, rounding to the nearest.
fn agm_round(self, other: &Float, round: Round) -> Float
Computes the arithmetic-geometric mean of self
and other
, applying the specified rounding method.
fn hypot(self, other: &Float) -> Float
Computes the Euclidean norm of self
and other
, rounding to the nearest.
fn hypot_round(self, other: &Float, round: Round) -> Float
Computes the Euclidean norm of self
and other
, applying the specified rounding method.
fn ai(self) -> Float
Computes the value of the Airy function Ai on self
, rounding to the nearest.
fn ai_round(self, round: Round) -> Float
Computes the value of the Airy function Ai on self
, applying the specified rounding method.
fn ceil(self) -> Float
Rounds up to the next higher integer, then rounds to the nearest. This function performs double rounding.
fn ceil_round(self, round: Round) -> Float
Rounds up to the next higher integer, then applies the specified rounding method. This function performs double rounding.
fn floor(self) -> Float
Rounds down to the next lower integer, then rounds to the nearest. This function performs double rounding.
fn floor_round(self, round: Round) -> Float
Rounds down to the next lower integer, then applies the specified rounding method. This function performs double rounding.
fn round(self) -> Float
Rounds to the next lower integer, then rounds to the nearest representable value. This function performs double rounding.
fn round_round(self, round: Round) -> Float
Rounds to the next lower integer, then applies the specified rounding method to get a representable value. This function performs double rounding.
fn trunc(self) -> Float
Rounds to the next integer towards zero, then rounds to the nearest. This function performs double rounding.
fn trunc_round(self, round: Round) -> Float
Rounds to the next integer towards zero, then applies the specified rounding method. This function performs double rounding.
fn is_integer(&self) -> bool
Returns true
if self
is an integer.
fn is_nan(&self) -> bool
Returns true
if self
is not a number.
fn is_inf(&self) -> bool
Returns true
if self
is plus or minus infinity.
fn is_number(&self) -> bool
Returns true
if self
is an ordinary number,
that is neither NaN nor infinity.
fn is_zero(&self) -> bool
Returns true
if self
is plus or minus zero.
fn is_regular(&self) -> bool
Returns true
if self
is a regular number,
that is neither NaN, nor infinity, nor zero.
fn sgn(&self) -> Ordering
Returns Less
if self
is less than zero,
Greater
if self
is greater than zero,
or Equal
if self
is equal to zero.
fn get_exp(&self) -> Option<Exp>
Returns the exponent of self
if self
is a regular number,
otherwise None
.
The significand is assumed to be in the range [0.5,1).
fn get_sign(&self) -> bool
Returns the sign bit, that is true
if the number is negative.
fn to_string(&self, base: c_int, round: Round) -> String
Returns a string representation of self
for the specified
base
and applying the specified rounding method.
If base
is > 36, a
to z
represent digits 10 to 36,
and A
to Z
represent digits 37 to 62.
The exponent is encoded in decimal.
Panics if base
is less than 2 or greater than 62.
Trait Implementations
impl Drop for Float
[src]
impl Clone for Float
[src]
fn clone(&self) -> Float
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Float)
Performs copy-assignment from source
. Read more
impl FromPrec<Integer> for Float
[src]
impl FromPrecRound<Integer> for Float
[src]
fn from_prec_round(t: Integer, prec: Prec, round: Round) -> Float
Performs the conversion.
impl FromPrec<Rational> for Float
[src]
impl FromPrecRound<Rational> for Float
[src]
fn from_prec_round(t: Rational, prec: Prec, round: Round) -> Float
Performs the conversion.
impl FromPrec<Float> for Float
[src]
impl FromPrecRound<Float> for Float
[src]
fn from_prec_round(t: Float, prec: Prec, round: Round) -> Float
Performs the conversion.
impl<'a> FromPrec<&'a Integer> for Float
[src]
impl<'a> FromPrecRound<&'a Integer> for Float
[src]
fn from_prec_round(t: &Integer, prec: Prec, round: Round) -> Float
Performs the conversion.
impl<'a> FromPrec<&'a Rational> for Float
[src]
impl<'a> FromPrecRound<&'a Rational> for Float
[src]
fn from_prec_round(t: &Rational, prec: Prec, round: Round) -> Float
Performs the conversion.
impl<'a> FromPrec<&'a Float> for Float
[src]
impl<'a> FromPrecRound<&'a Float> for Float
[src]
fn from_prec_round(t: &Float, prec: Prec, round: Round) -> Float
Performs the conversion.
impl FromPrec<i32> for Float
[src]
impl FromPrecRound<i32> for Float
[src]
fn from_prec_round(t: i32, prec: Prec, round: Round) -> Float
Performs the conversion.
impl FromPrec<u32> for Float
[src]
impl FromPrecRound<u32> for Float
[src]
fn from_prec_round(t: u32, prec: Prec, round: Round) -> Float
Performs the conversion.
impl FromPrec<i64> for Float
[src]
impl FromPrecRound<i64> for Float
[src]
fn from_prec_round(t: i64, prec: Prec, round: Round) -> Float
Performs the conversion.
impl FromPrec<u64> for Float
[src]
impl FromPrecRound<u64> for Float
[src]
fn from_prec_round(t: u64, prec: Prec, round: Round) -> Float
Performs the conversion.
impl FromPrec<f32> for Float
[src]
impl FromPrecRound<f32> for Float
[src]
fn from_prec_round(t: f32, prec: Prec, round: Round) -> Float
Performs the conversion.
impl FromPrec<f64> for Float
[src]
impl FromPrecRound<f64> for Float
[src]
fn from_prec_round(t: f64, prec: Prec, round: Round) -> Float
Performs the conversion.
impl<'a> AssignRound<&'a Float> for Float
[src]
fn assign_round(&mut self, other: &'a Float, round: Round)
impl<'a> AssignRound<&'a Integer> for Float
[src]
fn assign_round(&mut self, other: &'a Integer, round: Round)
impl<'a> AssignRound<&'a Rational> for Float
[src]
fn assign_round(&mut self, other: &'a Rational, round: Round)
impl<'a> Assign<&'a Float> for Float
[src]
impl Assign<Float> for Float
[src]
impl AssignRound<Float> for Float
[src]
fn assign_round(&mut self, other: Float, round: Round)
impl<'a> Assign<&'a Integer> for Float
[src]
impl Assign<Integer> for Float
[src]
impl AssignRound<Integer> for Float
[src]
fn assign_round(&mut self, other: Integer, round: Round)
impl<'a> Assign<&'a Rational> for Float
[src]
impl Assign<Rational> for Float
[src]
impl AssignRound<Rational> for Float
[src]
fn assign_round(&mut self, other: Rational, round: Round)
impl<'a> Add<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the +
operator
fn add(self, op: &'a Float) -> Float
The method for the +
operator
impl Add<Float> for Float
[src]
type Output = Float
The resulting type after applying the +
operator
fn add(self, op: Float) -> Float
The method for the +
operator
impl<'a> AddRound<&'a Float> for Float
[src]
type Output = Float
The resulting type after the addition.
fn add_round(self, op: &'a Float, round: Round) -> Float
Performs the addition.
impl AddRound<Float> for Float
[src]
type Output = Float
The resulting type after the addition.
fn add_round(self, op: Float, round: Round) -> Float
Performs the addition.
impl<'a> AddAssign<&'a Float> for Float
[src]
fn add_assign(&mut self, op: &'a Float)
The method for the +=
operator
impl AddAssign<Float> for Float
[src]
fn add_assign(&mut self, op: Float)
The method for the +=
operator
impl<'a> Sub<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn sub(self, op: &'a Float) -> Float
The method for the -
operator
impl Sub<Float> for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn sub(self, op: Float) -> Float
The method for the -
operator
impl<'a> SubRound<&'a Float> for Float
[src]
type Output = Float
The resulting type after the subtraction.
fn sub_round(self, op: &'a Float, round: Round) -> Float
Performs the subtraction.
impl SubRound<Float> for Float
[src]
type Output = Float
The resulting type after the subtraction.
fn sub_round(self, op: Float, round: Round) -> Float
Performs the subtraction.
impl<'a> SubAssign<&'a Float> for Float
[src]
fn sub_assign(&mut self, op: &'a Float)
The method for the -=
operator
impl SubAssign<Float> for Float
[src]
fn sub_assign(&mut self, op: Float)
The method for the -=
operator
impl<'a> Mul<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the *
operator
fn mul(self, op: &'a Float) -> Float
The method for the *
operator
impl Mul<Float> for Float
[src]
type Output = Float
The resulting type after applying the *
operator
fn mul(self, op: Float) -> Float
The method for the *
operator
impl<'a> MulRound<&'a Float> for Float
[src]
type Output = Float
The resulting type after the multiplication.
fn mul_round(self, op: &'a Float, round: Round) -> Float
Performs the multiplication.
impl MulRound<Float> for Float
[src]
type Output = Float
The resulting type after the multiplication.
fn mul_round(self, op: Float, round: Round) -> Float
Performs the multiplication.
impl<'a> MulAssign<&'a Float> for Float
[src]
fn mul_assign(&mut self, op: &'a Float)
The method for the *=
operator
impl MulAssign<Float> for Float
[src]
fn mul_assign(&mut self, op: Float)
The method for the *=
operator
impl<'a> Div<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the /
operator
fn div(self, op: &'a Float) -> Float
The method for the /
operator
impl Div<Float> for Float
[src]
type Output = Float
The resulting type after applying the /
operator
fn div(self, op: Float) -> Float
The method for the /
operator
impl<'a> DivRound<&'a Float> for Float
[src]
type Output = Float
The resulting type after the division.
fn div_round(self, op: &'a Float, round: Round) -> Float
Performs the division.
impl DivRound<Float> for Float
[src]
type Output = Float
The resulting type after the division.
fn div_round(self, op: Float, round: Round) -> Float
Performs the division.
impl<'a> DivAssign<&'a Float> for Float
[src]
fn div_assign(&mut self, op: &'a Float)
The method for the /=
operator
impl DivAssign<Float> for Float
[src]
fn div_assign(&mut self, op: Float)
The method for the /=
operator
impl Shl<u64> for Float
[src]
type Output = Float
The resulting type after applying the <<
operator
fn shl(self, op: u64) -> Float
The method for the <<
operator
impl ShlRound<u64> for Float
[src]
type Output = Float
The resulting type after the left shift operation.
fn shl_round(self, op: u64, round: Round) -> Float
Performs the left shift operation.
impl ShlAssign<u64> for Float
[src]
fn shl_assign(&mut self, op: u64)
The method for the <<=
operator
impl Shr<u64> for Float
[src]
type Output = Float
The resulting type after applying the >>
operator
fn shr(self, op: u64) -> Float
The method for the >>
operator
impl ShrRound<u64> for Float
[src]
type Output = Float
The resulting type after the right shift operation.
fn shr_round(self, op: u64, round: Round) -> Float
Performs the right shift operation.
impl ShrAssign<u64> for Float
[src]
fn shr_assign(&mut self, op: u64)
The method for the >>=
operator
impl Shl<i64> for Float
[src]
type Output = Float
The resulting type after applying the <<
operator
fn shl(self, op: i64) -> Float
The method for the <<
operator
impl ShlRound<i64> for Float
[src]
type Output = Float
The resulting type after the left shift operation.
fn shl_round(self, op: i64, round: Round) -> Float
Performs the left shift operation.
impl ShlAssign<i64> for Float
[src]
fn shl_assign(&mut self, op: i64)
The method for the <<=
operator
impl Shr<i64> for Float
[src]
type Output = Float
The resulting type after applying the >>
operator
fn shr(self, op: i64) -> Float
The method for the >>
operator
impl ShrRound<i64> for Float
[src]
type Output = Float
The resulting type after the right shift operation.
fn shr_round(self, op: i64, round: Round) -> Float
Performs the right shift operation.
impl ShrAssign<i64> for Float
[src]
fn shr_assign(&mut self, op: i64)
The method for the >>=
operator
impl<'a> PowRound<&'a Float> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow_round(self, op: &'a Float, round: Round) -> Float
Performs the power operation.
impl<'a> PowAssign<&'a Float> for Float
[src]
fn pow_assign(&mut self, op: &'a Float)
Peforms the power operation.
impl<'a> PowRound<&'a Integer> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow_round(self, op: &'a Integer, round: Round) -> Float
Performs the power operation.
impl<'a> PowAssign<&'a Integer> for Float
[src]
fn pow_assign(&mut self, op: &'a Integer)
Peforms the power operation.
impl<'a> Pow<&'a Float> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow(self, op: &'a Float) -> Float
Performs the power operation.
impl Pow<Float> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow(self, op: Float) -> Float
Performs the power operation.
impl PowRound<Float> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow_round(self, op: Float, round: Round) -> Float
Performs the power operation.
impl PowAssign<Float> for Float
[src]
fn pow_assign(&mut self, op: Float)
Peforms the power operation.
impl<'a> Pow<&'a Integer> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow(self, op: &'a Integer) -> Float
Performs the power operation.
impl Pow<Integer> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow(self, op: Integer) -> Float
Performs the power operation.
impl PowRound<Integer> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow_round(self, op: Integer, round: Round) -> Float
Performs the power operation.
impl PowAssign<Integer> for Float
[src]
fn pow_assign(&mut self, op: Integer)
Peforms the power operation.
impl Assign<u64> for Float
[src]
impl Assign<u32> for Float
[src]
impl AssignRound<u32> for Float
[src]
fn assign_round(&mut self, val: u32, round: Round)
impl AssignRound<u64> for Float
[src]
fn assign_round(&mut self, val: u64, round: Round)
impl Add<u64> for Float
[src]
type Output = Float
The resulting type after applying the +
operator
fn add(self, op: u64) -> Float
The method for the +
operator
impl AddRound<u64> for Float
[src]
type Output = Float
The resulting type after the addition.
fn add_round(self, op: u64, round: Round) -> Float
Performs the addition.
impl AddAssign<u64> for Float
[src]
fn add_assign(&mut self, op: u64)
The method for the +=
operator
impl Sub<u64> for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn sub(self, op: u64) -> Float
The method for the -
operator
impl SubRound<u64> for Float
[src]
type Output = Float
The resulting type after the subtraction.
fn sub_round(self, op: u64, round: Round) -> Float
Performs the subtraction.
impl SubAssign<u64> for Float
[src]
fn sub_assign(&mut self, op: u64)
The method for the -=
operator
impl Mul<u64> for Float
[src]
type Output = Float
The resulting type after applying the *
operator
fn mul(self, op: u64) -> Float
The method for the *
operator
impl MulRound<u64> for Float
[src]
type Output = Float
The resulting type after the multiplication.
fn mul_round(self, op: u64, round: Round) -> Float
Performs the multiplication.
impl MulAssign<u64> for Float
[src]
fn mul_assign(&mut self, op: u64)
The method for the *=
operator
impl Div<u64> for Float
[src]
type Output = Float
The resulting type after applying the /
operator
fn div(self, op: u64) -> Float
The method for the /
operator
impl DivRound<u64> for Float
[src]
type Output = Float
The resulting type after the division.
fn div_round(self, op: u64, round: Round) -> Float
Performs the division.
impl DivAssign<u64> for Float
[src]
fn div_assign(&mut self, op: u64)
The method for the /=
operator
impl Add<u32> for Float
[src]
type Output = Float
The resulting type after applying the +
operator
fn add(self, val: u32) -> Float
The method for the +
operator
impl AddRound<u32> for Float
[src]
type Output = Float
The resulting type after the addition.
fn add_round(self, val: u32, round: Round) -> Float
Performs the addition.
impl AddAssign<u32> for Float
[src]
fn add_assign(&mut self, val: u32)
The method for the +=
operator
impl Sub<u32> for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn sub(self, val: u32) -> Float
The method for the -
operator
impl SubRound<u32> for Float
[src]
type Output = Float
The resulting type after the subtraction.
fn sub_round(self, val: u32, round: Round) -> Float
Performs the subtraction.
impl SubAssign<u32> for Float
[src]
fn sub_assign(&mut self, val: u32)
The method for the -=
operator
impl Mul<u32> for Float
[src]
type Output = Float
The resulting type after applying the *
operator
fn mul(self, val: u32) -> Float
The method for the *
operator
impl MulRound<u32> for Float
[src]
type Output = Float
The resulting type after the multiplication.
fn mul_round(self, val: u32, round: Round) -> Float
Performs the multiplication.
impl MulAssign<u32> for Float
[src]
fn mul_assign(&mut self, val: u32)
The method for the *=
operator
impl Div<u32> for Float
[src]
type Output = Float
The resulting type after applying the /
operator
fn div(self, val: u32) -> Float
The method for the /
operator
impl DivRound<u32> for Float
[src]
type Output = Float
The resulting type after the division.
fn div_round(self, val: u32, round: Round) -> Float
Performs the division.
impl DivAssign<u32> for Float
[src]
fn div_assign(&mut self, val: u32)
The method for the /=
operator
impl Assign<i64> for Float
[src]
impl Assign<i32> for Float
[src]
impl AssignRound<i32> for Float
[src]
fn assign_round(&mut self, val: i32, round: Round)
impl AssignRound<i64> for Float
[src]
fn assign_round(&mut self, val: i64, round: Round)
impl Add<i64> for Float
[src]
type Output = Float
The resulting type after applying the +
operator
fn add(self, op: i64) -> Float
The method for the +
operator
impl AddRound<i64> for Float
[src]
type Output = Float
The resulting type after the addition.
fn add_round(self, op: i64, round: Round) -> Float
Performs the addition.
impl AddAssign<i64> for Float
[src]
fn add_assign(&mut self, op: i64)
The method for the +=
operator
impl Sub<i64> for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn sub(self, op: i64) -> Float
The method for the -
operator
impl SubRound<i64> for Float
[src]
type Output = Float
The resulting type after the subtraction.
fn sub_round(self, op: i64, round: Round) -> Float
Performs the subtraction.
impl SubAssign<i64> for Float
[src]
fn sub_assign(&mut self, op: i64)
The method for the -=
operator
impl Mul<i64> for Float
[src]
type Output = Float
The resulting type after applying the *
operator
fn mul(self, op: i64) -> Float
The method for the *
operator
impl MulRound<i64> for Float
[src]
type Output = Float
The resulting type after the multiplication.
fn mul_round(self, op: i64, round: Round) -> Float
Performs the multiplication.
impl MulAssign<i64> for Float
[src]
fn mul_assign(&mut self, op: i64)
The method for the *=
operator
impl Div<i64> for Float
[src]
type Output = Float
The resulting type after applying the /
operator
fn div(self, op: i64) -> Float
The method for the /
operator
impl DivRound<i64> for Float
[src]
type Output = Float
The resulting type after the division.
fn div_round(self, op: i64, round: Round) -> Float
Performs the division.
impl DivAssign<i64> for Float
[src]
fn div_assign(&mut self, op: i64)
The method for the /=
operator
impl Add<i32> for Float
[src]
type Output = Float
The resulting type after applying the +
operator
fn add(self, val: i32) -> Float
The method for the +
operator
impl AddRound<i32> for Float
[src]
type Output = Float
The resulting type after the addition.
fn add_round(self, val: i32, round: Round) -> Float
Performs the addition.
impl AddAssign<i32> for Float
[src]
fn add_assign(&mut self, val: i32)
The method for the +=
operator
impl Sub<i32> for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn sub(self, val: i32) -> Float
The method for the -
operator
impl SubRound<i32> for Float
[src]
type Output = Float
The resulting type after the subtraction.
fn sub_round(self, val: i32, round: Round) -> Float
Performs the subtraction.
impl SubAssign<i32> for Float
[src]
fn sub_assign(&mut self, val: i32)
The method for the -=
operator
impl Mul<i32> for Float
[src]
type Output = Float
The resulting type after applying the *
operator
fn mul(self, val: i32) -> Float
The method for the *
operator
impl MulRound<i32> for Float
[src]
type Output = Float
The resulting type after the multiplication.
fn mul_round(self, val: i32, round: Round) -> Float
Performs the multiplication.
impl MulAssign<i32> for Float
[src]
fn mul_assign(&mut self, val: i32)
The method for the *=
operator
impl Div<i32> for Float
[src]
type Output = Float
The resulting type after applying the /
operator
fn div(self, val: i32) -> Float
The method for the /
operator
impl DivRound<i32> for Float
[src]
type Output = Float
The resulting type after the division.
fn div_round(self, val: i32, round: Round) -> Float
Performs the division.
impl DivAssign<i32> for Float
[src]
fn div_assign(&mut self, val: i32)
The method for the /=
operator
impl Assign<f64> for Float
[src]
impl Assign<f32> for Float
[src]
impl AssignRound<f32> for Float
[src]
fn assign_round(&mut self, val: f32, round: Round)
impl AssignRound<f64> for Float
[src]
fn assign_round(&mut self, val: f64, round: Round)
impl Add<f64> for Float
[src]
type Output = Float
The resulting type after applying the +
operator
fn add(self, op: f64) -> Float
The method for the +
operator
impl AddRound<f64> for Float
[src]
type Output = Float
The resulting type after the addition.
fn add_round(self, op: f64, round: Round) -> Float
Performs the addition.
impl AddAssign<f64> for Float
[src]
fn add_assign(&mut self, op: f64)
The method for the +=
operator
impl Sub<f64> for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn sub(self, op: f64) -> Float
The method for the -
operator
impl SubRound<f64> for Float
[src]
type Output = Float
The resulting type after the subtraction.
fn sub_round(self, op: f64, round: Round) -> Float
Performs the subtraction.
impl SubAssign<f64> for Float
[src]
fn sub_assign(&mut self, op: f64)
The method for the -=
operator
impl Mul<f64> for Float
[src]
type Output = Float
The resulting type after applying the *
operator
fn mul(self, op: f64) -> Float
The method for the *
operator
impl MulRound<f64> for Float
[src]
type Output = Float
The resulting type after the multiplication.
fn mul_round(self, op: f64, round: Round) -> Float
Performs the multiplication.
impl MulAssign<f64> for Float
[src]
fn mul_assign(&mut self, op: f64)
The method for the *=
operator
impl Div<f64> for Float
[src]
type Output = Float
The resulting type after applying the /
operator
fn div(self, op: f64) -> Float
The method for the /
operator
impl DivRound<f64> for Float
[src]
type Output = Float
The resulting type after the division.
fn div_round(self, op: f64, round: Round) -> Float
Performs the division.
impl DivAssign<f64> for Float
[src]
fn div_assign(&mut self, op: f64)
The method for the /=
operator
impl Add<f32> for Float
[src]
type Output = Float
The resulting type after applying the +
operator
fn add(self, val: f32) -> Float
The method for the +
operator
impl AddRound<f32> for Float
[src]
type Output = Float
The resulting type after the addition.
fn add_round(self, val: f32, round: Round) -> Float
Performs the addition.
impl AddAssign<f32> for Float
[src]
fn add_assign(&mut self, val: f32)
The method for the +=
operator
impl Sub<f32> for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn sub(self, val: f32) -> Float
The method for the -
operator
impl SubRound<f32> for Float
[src]
type Output = Float
The resulting type after the subtraction.
fn sub_round(self, val: f32, round: Round) -> Float
Performs the subtraction.
impl SubAssign<f32> for Float
[src]
fn sub_assign(&mut self, val: f32)
The method for the -=
operator
impl Mul<f32> for Float
[src]
type Output = Float
The resulting type after applying the *
operator
fn mul(self, val: f32) -> Float
The method for the *
operator
impl MulRound<f32> for Float
[src]
type Output = Float
The resulting type after the multiplication.
fn mul_round(self, val: f32, round: Round) -> Float
Performs the multiplication.
impl MulAssign<f32> for Float
[src]
fn mul_assign(&mut self, val: f32)
The method for the *=
operator
impl Div<f32> for Float
[src]
type Output = Float
The resulting type after applying the /
operator
fn div(self, val: f32) -> Float
The method for the /
operator
impl DivRound<f32> for Float
[src]
type Output = Float
The resulting type after the division.
fn div_round(self, val: f32, round: Round) -> Float
Performs the division.
impl DivAssign<f32> for Float
[src]
fn div_assign(&mut self, val: f32)
The method for the /=
operator
impl Pow<u64> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow(self, op: u64) -> Float
Performs the power operation.
impl PowRound<u64> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow_round(self, op: u64, round: Round) -> Float
Performs the power operation.
impl PowAssign<u64> for Float
[src]
fn pow_assign(&mut self, op: u64)
Peforms the power operation.
impl Pow<i64> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow(self, op: i64) -> Float
Performs the power operation.
impl PowRound<i64> for Float
[src]
type Output = Float
The resulting type after the power operation.
fn pow_round(self, op: i64, round: Round) -> Float
Performs the power operation.
impl PowAssign<i64> for Float
[src]
fn pow_assign(&mut self, op: i64)
Peforms the power operation.
impl Neg for Float
[src]
type Output = Float
The resulting type after applying the -
operator
fn neg(self) -> Float
The method for the unary -
operator
impl NegRound for Float
[src]
type Output = Float
The resulting type after the negation.
fn neg_round(self, round: Round) -> Float
Performs the negation.
impl NegAssign for Float
[src]
fn neg_assign(&mut self)
Peforms the negation.
impl PartialEq for Float
[src]
fn eq(&self, other: &Float) -> 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 PartialOrd for Float
[src]
fn partial_cmp(&self, other: &Float) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Float) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Float) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Float) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Float) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq<f64> for Float
[src]
fn eq(&self, other: &f64) -> 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 PartialOrd<f64> for Float
[src]
fn partial_cmp(&self, other: &f64) -> 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 PartialEq<f32> for Float
[src]
fn eq(&self, other: &f32) -> 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 PartialOrd<f32> for Float
[src]
fn partial_cmp(&self, other: &f32) -> 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