Struct gmp_mpfr::Float [] [src]

pub struct Float { /* fields omitted */ }

A multi-precision floating-point number. The precision has to be set during construction.

There are two versions of most methods:

  1. The first rounds the returned or stored Float to the nearest representable value.
  2. The second applies the specified rounding method, and returns the rounding direction:
    • Ordering::Less if the returned/stored Float is less than the exact result,
    • Ordering::Equal if the returned/stored Float is equal to the exact result,
    • Ordering::Greater if the returned/stored Float is greater than the exact result,

Methods

impl Float
[src]

Create a new floating-point number with the specified precision and with value 0.

Returns the precision of self.

Sets the precision of self exactly, rounding to the nearest.

Sets the precision of self exactly, applying the specified rounding method.

Converts to an integer, rounding to the nearest.

Converts to an integer, applying the specified rounding method.

If self is a finite number, returns an integer and exponent such that self is exactly equal to the integer multiplied by two raised to the power of the exponent.

Examples

use gmp_mpfr::{Assign, Float, FromPrec, Special};

let mut float = Float::from_prec(6.5, 16);
// 6.5 in binary is 110.1
// Since the precision is 16 bits, this becomes
// 1101_0000_0000_0000 times two to the power of -12
let (int, exp) = float.to_integer_exp().unwrap();
assert!(int == 0b1101_0000_0000_0000);
assert!(exp == -13);

float.assign(0);
let (zero, _) = float.to_integer_exp().unwrap();
assert!(zero == 0);

float.assign(Special::Infinity);
assert!(float.to_integer_exp().is_none());

Converts to a u32, 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. If the value is a NaN, None is returned.

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. If the value is a NaN, None is returned.

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.

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.

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. If the value is a NaN, None is returned.

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. If the value is a NaN, None is returned.

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.

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.

Computes the square, rounding to the nearest.

Computes the square, applying the specified rounding method.

Computes the square root, rounding to the nearest.

Computes the square root, applying the specified rounding method.

Sets self to the square root of u, rounding to the nearest.

Sets self to the square root of u, applying the specified rounding method.

Computes the reciprocal square root, rounding to the nearest.

Computes the reciprocal square root, applying the specified rounding method.

Computes the cube root, rounding to the nearest.

Computes the cube root, applying the specified rounding method.

Computes the kth root, rounding to the nearest.

Computes the kth root, applying the specified rounding method.

Computes the absolute value, rounding to the nearest.

Computes the absolute value, applying the specified rounding method.

Computes the reciprocal, rounding to the nearest.

Computes the reciprocal, applying the specified rounding method.

Computes the positive difference between self and other, rounding to the nearest.

Computes the arithmetic-geometric mean of self and other, applying the specified rounding method.

Compares the absolute values of self and other.

Computes the natural logarithm, rounding to the nearest.

Computes the natural logarithm, applying the specified rounding method.

Computes the logarithm to base 2, rounding to the nearest.

Computes the logarithm to base 2, applying the specified rounding method.

Computes the logarithm to base 10, rounding to the nearest.

Computes the logarithm to base 10, applying the specified rounding method.

Computes the exponential, rounding to the nearest.

Computes the exponential, applying the specified rounding method.

Computes 2 to the power of self, rounding to the nearest.

Computes 2 to the power of self, applying the specified rounding method.

Computes 10 to the power of self, rounding to the nearest.

Computes 10 to the power of self, applying the specified rounding method.

Computes the cosine, rounding to the nearest.

Computes the cosine, applying the specified rounding method.

Computes the sine, rounding to the nearest.

Computes the sine, applying the specified rounding method.

Computes the tangent, rounding to the nearest.

Computes the tangent, applying the specified rounding method.

Computes the sine and cosine, rounding to the nearest. The sine is stored in self and keeps its precision, while the cosine is stored in buf keeping its precision.

Computes the sine and cosine, applying the specified rounding method. The sine is stored in self and keeps its precision, while the cosine is stored in buf keeping its precision.

Computes the secant, rounding to the nearest.

Computes the secant, applying the specified rounding method.

Computes the cosecant, rounding to the nearest.

Computes the cosecant, applying the specified rounding method.

Computes the cotangent, rounding to the nearest.

Computes the cotangent, applying the specified rounding method.

Computes the arc-cosine, rounding to the nearest.

Computes the arc-cosine, applying the specified rounding method.

Computes the arc-sine, rounding to the nearest.

Computes the arc-sine, applying the specified rounding method.

Computes the arc-tangent, rounding to the nearest.

Computes the arc-tangent, applying the specified rounding method.

Computes the arc-tangent2 of self and other, rounding to the nearest.

This is similar to the arc-tangent of self / other, except in the cases when either self or other or both are zero or infinity.

Computes the arc-tangent2 of self and other, applying the specified rounding method.

This is similar to the arc-tangent of self / other, except in the cases when either self or other or both are zero or infinity.

Computes the hyperbolic cosine, rounding to the nearest.

Computes the hyperbolic cosine, applying the specified rounding method.

Computes the hyperbolic sine, rounding to the nearest.

Computes the hyperbolic sine, applying the specified rounding method.

Computes the hyperbolic tangent, rounding to the nearest.

Computes the hyperbolic tangent, applying the specified rounding method.

Computes the hyperbolic sine and cosine, rounding to the nearest. The sine is stored in self and keeps its precision, while the cosine is stored in buf keeping its precision.

Computes the hyperbolic sine and cosine, applying the specified rounding method. The sine is stored in self and keeps its precision, while the cosine is stored in buf keeping its precision.

Computes the hyperbolic secant, rounding to the nearest.

Computes the hyperbolic secant, applying the specified rounding method.

Computes the hyperbolic cosecant, rounding to the nearest.

Computes the hyperbolic cosecant, applying the specified rounding method.

Computes the hyperbolic cotangent, rounding to the nearest.

Computes the hyperbolic cotangent, applying the specified rounding method.

Computes the inverse hyperbolic cosine, rounding to the nearest.

Computes the inverse hyperbolic cosine, applying the specified rounding method.

Computes the inverse hyperbolic sine, rounding to the nearest.

Computes the inverse hyperbolic sine, applying the specified rounding method.

Computes the inverse hyperbolic tangent, rounding to the nearest.

Computes the inverse hyperbolic tangent, applying the specified rounding method.

Sets self to the factorial of u, rounding to the nearest.

Sets self to the factorial of u, applying the specified rounding method.

Computes the natural logarithm of one plus self, rounding to the nearest.

Computes the natural logarithm of one plus self, applying the specified rounding method.

Subtracts one from the exponential of self, rounding to the nearest.

Subtracts one from the exponential of self, applying the specified rounding method.

Computes the exponential integral of self, rounding to the nearest.

Computes the exponential integral of self, applying the specified rounding method.

Computes the real part of the dilogarithm of self, rounding to the nearest.

Computes the real part of the dilogarithm of self, applying the specified rounding method.

Computes the value of the Gamma function on self, rounding to the nearest.

Computes the value of the Gamma function on self, applying the specified rounding method.

Computes the logarithm of the Gamma function on self, rounding to the nearest.

Computes the logarithm of the Gamma function on self, applying the specified rounding method.

Computes the logarithm of the absolute value of the Gamma function on self, rounding to the nearest. Returns Ordering::Less if the Gamma function is negative, or Ordering::Greater if the Gamma function is positive.

Computes the logarithm of the absolute value of the Gamma function on self, applying the specified rounding method. The returned tuple contains:

  1. The logarithm of the absolute value of the Gamma function.
  2. The rounding direction.

Computes the value of the Digamma function on self, rounding to the nearest.

Computes the value of the Digamma function on self, applying the specified rounding method.

Computes the value of the Riemann Zeta function on self, rounding to the nearest.

Computes the value of the Riemann Zeta function on self, applying the specified rounding method.

Sets self to the value of the Riemann Zeta function on u, rounding to the nearest.

Sets self to the value of the Riemann Zeta function on u, applying the specified rounding method.

Computes the value of the error function on self, rounding to the nearest.

Computes the value of the error function on self, applying the specified rounding method.

Computes the value of the complementary error function on self, rounding to the nearest.

Computes the value of the complementary error function on self, applying the specified rounding method.

Computes the value of the first kind Bessel function of order 0 on self, rounding to the nearest.

Computes the value of the first kind Bessel function of order 0 on self, applying the specified rounding method.

Computes the value of the first kind Bessel function of order 1 on self, rounding to the nearest.

Computes the value of the first kind Bessel function of order 1 on self, applying the specified rounding method.

Computes the value of the first kind Bessel function of order n on self, rounding to the nearest.

Computes the value of the first kind Bessel function of order n on self, applying the specified rounding method.

Computes the value of the second kind Bessel function of order 0 on self, rounding to the nearest.

Computes the value of the second kind Bessel function of order 0 on self, applying the specified rounding method.

Computes the value of the second kind Bessel function of order 1 on self, rounding to the nearest.

Computes the value of the second kind Bessel function of order 1 on self, applying the specified rounding method.

Computes the value of the second kind Bessel function of order n on self, rounding to the nearest.

Computes the value of the second kind Bessel function of order n on self, applying the specified rounding method.

Computes the arithmetic-geometric mean of self and other, rounding to the nearest.

Computes the arithmetic-geometric mean of self and other, applying the specified rounding method.

Computes the Euclidean norm of self and other, rounding to the nearest.

Computes the Euclidean norm of self and other, applying the specified rounding method.

Computes the value of the Airy function Ai on self, rounding to the nearest.

Computes the value of the Airy function Ai on self, applying the specified rounding method.

Rounds up to the next higher integer, then rounds to the nearest. This function performs double rounding.

Rounds up to the next higher integer, then applies the specified rounding method. This function performs double rounding.

Rounds down to the next lower integer, then rounds to the nearest. This function performs double rounding.

Rounds down to the next lower integer, then applies the specified rounding method. This function performs double rounding.

Rounds to the nearest integer, rounding half-way cases away from zero, then rounds to the nearest representable value. This function performs double rounding.

Rounds to the next lower integer, then applies the specified rounding method to get a representable value. This function performs double rounding.

Rounds to the next integer towards zero, then rounds to the nearest. This function performs double rounding.

Rounds to the next integer towards zero, then applies the specified rounding method. This function performs double rounding.

Returns true if self is an integer.

Returns true if self is not a number.

Returns true if self is plus or minus infinity.

Returns true if self is a finite number, that is neither NaN nor infinity.

Returns true if self is plus or minus zero.

Returns true if self is a normal number, that is neither NaN, nor infinity, nor zero. Note that Float cannot be subnormal.

Returns Less if self is less than zero, Greater if self is greater than zero, or Equal if self is equal to zero.

Returns the exponent of self if self is a normal number, otherwise None. The significand is assumed to be in the range [0.5,1).

Returns the sign bit, that is true if the number is negative.

Emulate subnormal numbers, rounding to the nearest. This method has no effect if the value is not in the subnormal range.

Emulate subnormal numbers, applying the specified rounding method. This method simply propagates prev_rounding if the value is not in the subnormal range.

Returns a string representation of self for the specified radix rounding to the nearest. If radix 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

Panics if radix is less than 2 or greater than 62.

Returns a string representation of self for the specified radix applying the specified rounding method. If radix 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

Panics if radix is less than 2 or greater than 62.

Trait Implementations

impl Drop for Float
[src]

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

impl Clone for Float
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromPrec<Constant> for Float
[src]

Constructs a Float from a Constant with the specified precision, rounding to the nearest.

impl FromPrecRound<Constant> for Float
[src]

Constructs a Float from a Constant with the specified precision, applying the specified rounding method.

impl FromPrec<Special> for Float
[src]

Constructs a Float from a Special with the specified precision.

impl FromPrec<Integer> for Float
[src]

Constructs a Float from an Integer with the specified precision, rounding to the nearest.

impl FromPrecRound<Integer> for Float
[src]

Constructs a Float from an Integer with the specified precision, applying the specified rounding method.

impl FromPrec<Rational> for Float
[src]

Constructs a Float from a Rational with the specified precision, rounding to the nearest.

impl FromPrecRound<Rational> for Float
[src]

Constructs a Float from a Rational with the specified precision, applying the specified rounding method.

impl FromPrec<Float> for Float
[src]

Constructs a Float from another Float with the specified precision, rounding to the nearest.

impl FromPrecRound<Float> for Float
[src]

Constructs a Float from another Float with the specified precision, applying the specified rounding method.

impl<'a> FromPrec<&'a Integer> for Float
[src]

Constructs a Float from an Integer with the specified precision, rounding to the nearest.

impl<'a> FromPrecRound<&'a Integer> for Float
[src]

Constructs a Float from an Integer with the specified precision, applying the specified rounding method.

impl<'a> FromPrec<&'a Rational> for Float
[src]

Constructs a Float from a Rational with the specified precision, rounding to the nearest.

impl<'a> FromPrecRound<&'a Rational> for Float
[src]

Constructs a Float from a Rational with the specified precision, applying the specified rounding method.

impl<'a> FromPrec<&'a Float> for Float
[src]

Constructs a Float from another `Float with the specified precision, rounding to the nearest.

impl<'a> FromPrecRound<&'a Float> for Float
[src]

Constructs a Float from another `Float with the specified precision, applying the specified rounding method.

impl FromPrec<u32> for Float
[src]

Constructs a Float from a u32 with the specified precision, rounding to the nearest.

impl FromPrecRound<u32> for Float
[src]

Constructs a Float from a u32 with the specified precision, applying the specified rounding method.

impl FromPrec<i32> for Float
[src]

Constructs a Float from an i32 with the specified precision, rounding to the nearest.

impl FromPrecRound<i32> for Float
[src]

Constructs a Float from an i32 with the specified precision, applying the specified rounding method.

impl FromPrec<f64> for Float
[src]

Constructs a Float from an f64 with the specified precision, rounding to the nearest.

impl FromPrecRound<f64> for Float
[src]

Constructs a Float from an f64 with the specified precision, applying the specified rounding method.

impl FromPrec<f32> for Float
[src]

Constructs a Float from an f32 with the specified precision, rounding to the nearest.

impl FromPrecRound<f32> for Float
[src]

Constructs a Float from an f32 with the specified precision, applying the specified rounding method.

impl Assign<Constant> for Float
[src]

Assigns from a Constant and rounds to the nearest.

impl AssignRound<Constant> for Float
[src]

Assigns from a Constant and applies the specified rounding method.

impl Assign<Special> for Float
[src]

Assigns from a Special.

impl<'a> Assign<&'a Float> for Float
[src]

Assigns from another Float and rounds to the nearest.

impl<'a> AssignRound<&'a Float> for Float
[src]

Assigns from another Float and applies the specified rounding method.

impl Assign<Float> for Float
[src]

Assigns from another Float and rounds to the nearest.

impl AssignRound<Float> for Float
[src]

Assigns from another Float and applies the specified rounding method.

impl<'a> Assign<&'a Integer> for Float
[src]

Assigns from an Integer and rounds to the nearest.

impl<'a> AssignRound<&'a Integer> for Float
[src]

Assigns from an Integer and applies the specified rounding method.

impl Assign<Integer> for Float
[src]

Assigns from an Integer and rounds to the nearest.

impl AssignRound<Integer> for Float
[src]

Assigns from an Integer and applies the specified rounding method.

impl<'a> Assign<&'a Rational> for Float
[src]

Assigns from a Rational and rounds to the nearest.

impl<'a> AssignRound<&'a Rational> for Float
[src]

Assigns from a Rational and applies the specified rounding method.

impl Assign<Rational> for Float
[src]

Assigns from a Rational and rounds to the nearest.

impl AssignRound<Rational> for Float
[src]

Assigns from a Rational and applies the specified rounding method.

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

The resulting type after applying the + operator

The method for the + operator

impl Add<Float> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a> AddRound<&'a Float> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl AddRound<Float> for Float
[src]

The resulting type after the addition.

Performs the addition.

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

The method for the += operator

impl AddAssign<Float> for Float
[src]

The method for the += operator

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

The resulting type after applying the - operator

The method for the - operator

impl Sub<Float> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a> SubRound<&'a Float> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl SubRound<Float> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

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

The method for the -= operator

impl SubAssign<Float> for Float
[src]

The method for the -= operator

impl SubFromAssign for Float
[src]

Peforms the subtraction.

impl<'a> SubFromAssign<&'a Float> for Float
[src]

Peforms the subtraction.

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

The resulting type after applying the * operator

The method for the * operator

impl Mul<Float> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a> MulRound<&'a Float> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl MulRound<Float> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

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

The method for the *= operator

impl MulAssign<Float> for Float
[src]

The method for the *= operator

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

The resulting type after applying the / operator

The method for the / operator

impl Div<Float> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a> DivRound<&'a Float> for Float
[src]

The resulting type after the division.

Performs the division.

impl DivRound<Float> for Float
[src]

The resulting type after the division.

Performs the division.

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

The method for the /= operator

impl DivAssign<Float> for Float
[src]

The method for the /= operator

impl DivFromAssign for Float
[src]

Peforms the division.

impl<'a> DivFromAssign<&'a Float> for Float
[src]

Peforms the division.

impl<'a> Add<&'a Integer> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl Add<Integer> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a> AddRound<&'a Integer> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl AddRound<Integer> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl<'a> AddAssign<&'a Integer> for Float
[src]

The method for the += operator

impl AddAssign<Integer> for Float
[src]

The method for the += operator

impl<'a> Sub<&'a Integer> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl Sub<Integer> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a> SubRound<&'a Integer> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl SubRound<Integer> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl<'a> SubAssign<&'a Integer> for Float
[src]

The method for the -= operator

impl SubAssign<Integer> for Float
[src]

The method for the -= operator

impl SubFromAssign<Integer> for Float
[src]

Peforms the subtraction.

impl<'a> SubFromAssign<&'a Integer> for Float
[src]

Peforms the subtraction.

impl<'a> Mul<&'a Integer> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl Mul<Integer> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a> MulRound<&'a Integer> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl MulRound<Integer> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl<'a> MulAssign<&'a Integer> for Float
[src]

The method for the *= operator

impl MulAssign<Integer> for Float
[src]

The method for the *= operator

impl<'a> Div<&'a Integer> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl Div<Integer> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a> DivRound<&'a Integer> for Float
[src]

The resulting type after the division.

Performs the division.

impl DivRound<Integer> for Float
[src]

The resulting type after the division.

Performs the division.

impl<'a> DivAssign<&'a Integer> for Float
[src]

The method for the /= operator

impl DivAssign<Integer> for Float
[src]

The method for the /= operator

impl<'a> Add<&'a Rational> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl Add<Rational> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a> AddRound<&'a Rational> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl AddRound<Rational> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl<'a> AddAssign<&'a Rational> for Float
[src]

The method for the += operator

impl AddAssign<Rational> for Float
[src]

The method for the += operator

impl<'a> Sub<&'a Rational> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl Sub<Rational> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a> SubRound<&'a Rational> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl SubRound<Rational> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl<'a> SubAssign<&'a Rational> for Float
[src]

The method for the -= operator

impl SubAssign<Rational> for Float
[src]

The method for the -= operator

impl<'a> Mul<&'a Rational> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl Mul<Rational> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a> MulRound<&'a Rational> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl MulRound<Rational> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl<'a> MulAssign<&'a Rational> for Float
[src]

The method for the *= operator

impl MulAssign<Rational> for Float
[src]

The method for the *= operator

impl<'a> Div<&'a Rational> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl Div<Rational> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a> DivRound<&'a Rational> for Float
[src]

The resulting type after the division.

Performs the division.

impl DivRound<Rational> for Float
[src]

The resulting type after the division.

Performs the division.

impl<'a> DivAssign<&'a Rational> for Float
[src]

The method for the /= operator

impl DivAssign<Rational> for Float
[src]

The method for the /= operator

impl Shl<u32> for Float
[src]

The resulting type after applying the << operator

Multiplies self by 2 to the power of op, rounding to the nearest.

impl ShlRound<u32> for Float
[src]

The resulting type after the left shift operation.

Multiplies self by 2 to the power of op, applying the specified rounding.

impl ShlAssign<u32> for Float
[src]

Multiplies self by 2 to the power of op, rounding to the nearest.

impl Shr<u32> for Float
[src]

The resulting type after applying the >> operator

Divides self by 2 to the power of op, rounding to the nearest.

impl ShrRound<u32> for Float
[src]

The resulting type after the right shift operation.

Divides self by 2 to the power of op, applying the specified rounding.

impl ShrAssign<u32> for Float
[src]

Divides self by 2 to the power of op, rounding to the nearest.

impl Shl<i32> for Float
[src]

The resulting type after applying the << operator

Multiplies self by 2 to the power of op, rounding to the nearest.

impl ShlRound<i32> for Float
[src]

The resulting type after the left shift operation.

Multiplies self by 2 to the power of op, applying the specified rounding.

impl ShlAssign<i32> for Float
[src]

Multiplies self by 2 to the power of op, rounding to the nearest.

impl Shr<i32> for Float
[src]

The resulting type after applying the >> operator

Divides self by 2 to the power of op, rounding to the nearest.

impl ShrRound<i32> for Float
[src]

The resulting type after the right shift operation.

Divides self by 2 to the power of op, applying the specified rounding.

impl ShrAssign<i32> for Float
[src]

Divides self by 2 to the power of op, rounding to the nearest.

impl<'a> PowRound<&'a Float> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl<'a> PowAssign<&'a Float> for Float
[src]

Peforms the power operation.

impl<'a> PowRound<&'a Integer> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl<'a> PowAssign<&'a Integer> for Float
[src]

Peforms the power operation.

impl<'a> Pow<&'a Float> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl Pow<Float> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl PowRound<Float> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl PowAssign<Float> for Float
[src]

Peforms the power operation.

impl<'a> Pow<&'a Integer> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl Pow<Integer> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl PowRound<Integer> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl PowAssign<Integer> for Float
[src]

Peforms the power operation.

impl Assign<u32> for Float
[src]

Peforms the assignement.

impl AssignRound<u32> for Float
[src]

Peforms the assignment and rounding.

impl Add<u32> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl AddRound<u32> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl AddAssign<u32> for Float
[src]

The method for the += operator

impl Sub<u32> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl SubRound<u32> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl SubAssign<u32> for Float
[src]

The method for the -= operator

impl SubFromAssign<u32> for Float
[src]

Peforms the subtraction.

impl Mul<u32> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl MulRound<u32> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl MulAssign<u32> for Float
[src]

The method for the *= operator

impl Div<u32> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl DivRound<u32> for Float
[src]

The resulting type after the division.

Performs the division.

impl DivAssign<u32> for Float
[src]

The method for the /= operator

impl DivFromAssign<u32> for Float
[src]

Peforms the division.

impl Assign<i32> for Float
[src]

Peforms the assignement.

impl AssignRound<i32> for Float
[src]

Peforms the assignment and rounding.

impl Add<i32> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl AddRound<i32> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl AddAssign<i32> for Float
[src]

The method for the += operator

impl Sub<i32> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl SubRound<i32> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl SubAssign<i32> for Float
[src]

The method for the -= operator

impl SubFromAssign<i32> for Float
[src]

Peforms the subtraction.

impl Mul<i32> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl MulRound<i32> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl MulAssign<i32> for Float
[src]

The method for the *= operator

impl Div<i32> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl DivRound<i32> for Float
[src]

The resulting type after the division.

Performs the division.

impl DivAssign<i32> for Float
[src]

The method for the /= operator

impl DivFromAssign<i32> for Float
[src]

Peforms the division.

impl Assign<f64> for Float
[src]

Peforms the assignement.

impl AssignRound<f64> for Float
[src]

Peforms the assignment and rounding.

impl Add<f64> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl AddRound<f64> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl AddAssign<f64> for Float
[src]

The method for the += operator

impl Sub<f64> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl SubRound<f64> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl SubAssign<f64> for Float
[src]

The method for the -= operator

impl SubFromAssign<f64> for Float
[src]

Peforms the subtraction.

impl Mul<f64> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl MulRound<f64> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl MulAssign<f64> for Float
[src]

The method for the *= operator

impl Div<f64> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl DivRound<f64> for Float
[src]

The resulting type after the division.

Performs the division.

impl DivAssign<f64> for Float
[src]

The method for the /= operator

impl DivFromAssign<f64> for Float
[src]

Peforms the division.

impl Assign<f32> for Float
[src]

Peforms the assignement.

impl AssignRound<f32> for Float
[src]

Peforms the assignment and rounding.

impl Add<f32> for Float
[src]

The resulting type after applying the + operator

The method for the + operator

impl AddRound<f32> for Float
[src]

The resulting type after the addition.

Performs the addition.

impl AddAssign<f32> for Float
[src]

The method for the += operator

impl Sub<f32> for Float
[src]

The resulting type after applying the - operator

The method for the - operator

impl SubRound<f32> for Float
[src]

The resulting type after the subtraction.

Performs the subtraction.

impl SubAssign<f32> for Float
[src]

The method for the -= operator

impl Mul<f32> for Float
[src]

The resulting type after applying the * operator

The method for the * operator

impl MulRound<f32> for Float
[src]

The resulting type after the multiplication.

Performs the multiplication.

impl MulAssign<f32> for Float
[src]

The method for the *= operator

impl Div<f32> for Float
[src]

The resulting type after applying the / operator

The method for the / operator

impl DivRound<f32> for Float
[src]

The resulting type after the division.

Performs the division.

impl DivAssign<f32> for Float
[src]

The method for the /= operator

impl Pow<u32> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl PowRound<u32> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl PowAssign<u32> for Float
[src]

Peforms the power operation.

impl Pow<i32> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl PowRound<i32> for Float
[src]

The resulting type after the power operation.

Performs the power operation.

impl PowAssign<i32> for Float
[src]

Peforms the power operation.

impl Neg for Float
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl NegRound for Float
[src]

The resulting type after the negation.

Performs the negation.

impl NegAssign for Float
[src]

Peforms the negation.

impl PartialEq for Float
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Float
[src]

Returns the ordering of self and other, or None if one (or both) of them is a NaN.

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

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

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

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

impl PartialEq<Integer> for Float
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd<Integer> for Float
[src]

Returns the ordering of self and other, or None if self is a NaN.

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

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

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

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

impl PartialEq<Rational> for Float
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd<Rational> for Float
[src]

Returns the ordering of self and other, or None if self is a NaN.

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

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

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

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

impl PartialEq<u32> for Float
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd<u32> for Float
[src]

Returns the ordering of self and other, or None if self is a NaN.

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

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

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

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

impl PartialEq<i32> for Float
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd<i32> for Float
[src]

Returns the ordering of self and other, or None if self is a NaN.

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

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

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

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]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd<f64> for Float
[src]

Returns the ordering of self and other, or None if one (or both) of them is a NaN.

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

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

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

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]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd<f32> for Float
[src]

Returns the ordering of self and other, or None if one (or both) of them is a NaN.

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

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

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

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

impl Display for Float
[src]

Formats the value using the given formatter.

impl Debug for Float
[src]

Formats the value using the given formatter.

impl Binary for Float
[src]

Formats the value using the given formatter.

impl Octal for Float
[src]

Formats the value using the given formatter.

impl LowerHex for Float
[src]

Formats the value using the given formatter.

impl UpperHex for Float
[src]

Formats the value using the given formatter.