pub type RatePerSecond = f64;
Expand description

Marker alias to show the meaning of a f64 in certain methods.

Trait Implementations§

source§

impl<'a> Add<&'a Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the + operator.
source§

fn add(self, other: &Complex<f64>) -> Complex<f64>

Performs the + operation. Read more
1.0.0 · source§

impl Add<&f64> for f64

§

type Output = <f64 as Add<f64>>::Output

The resulting type after applying the + operator.
source§

fn add(self, other: &f64) -> <f64 as Add<f64>>::Output

Performs the + operation. Read more
source§

impl Add<Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the + operator.
source§

fn add(self, other: Complex<f64>) -> <f64 as Add<Complex<f64>>>::Output

Performs the + operation. Read more
source§

impl Add<DVec2> for f64

§

type Output = DVec2

The resulting type after applying the + operator.
source§

fn add(self, rhs: DVec2) -> DVec2

Performs the + operation. Read more
source§

impl Add<DVec3> for f64

§

type Output = DVec3

The resulting type after applying the + operator.
source§

fn add(self, rhs: DVec3) -> DVec3

Performs the + operation. Read more
source§

impl Add<DVec4> for f64

§

type Output = DVec4

The resulting type after applying the + operator.
source§

fn add(self, rhs: DVec4) -> DVec4

Performs the + operation. Read more
1.0.0 · source§

impl Add<f64> for f64

§

type Output = f64

The resulting type after applying the + operator.
source§

fn add(self, other: f64) -> f64

Performs the + operation. Read more
1.22.0 · source§

impl AddAssign<&f64> for f64

source§

fn add_assign(&mut self, other: &f64)

Performs the += operation. Read more
1.8.0 · source§

impl AddAssign<f64> for f64

source§

fn add_assign(&mut self, other: f64)

Performs the += operation. Read more
§

impl AsPrimitive<OrderedFloat<f32>> for f64

§

fn as_(self) -> OrderedFloat<f32>

Convert a value to another, using the as operator.
§

impl AsPrimitive<OrderedFloat<f64>> for f64

§

fn as_(self) -> OrderedFloat<f64>

Convert a value to another, using the as operator.
source§

impl AsPrimitive<f32> for f64

source§

fn as_(self) -> f32

Convert a value to another, using the as operator.
source§

impl AsPrimitive<f64> for f64

source§

fn as_(self) -> f64

Convert a value to another, using the as operator.
source§

impl AsPrimitive<i128> for f64

source§

fn as_(self) -> i128

Convert a value to another, using the as operator.
source§

impl AsPrimitive<i16> for f64

source§

fn as_(self) -> i16

Convert a value to another, using the as operator.
source§

impl AsPrimitive<i32> for f64

source§

fn as_(self) -> i32

Convert a value to another, using the as operator.
source§

impl AsPrimitive<i64> for f64

source§

fn as_(self) -> i64

Convert a value to another, using the as operator.
source§

impl AsPrimitive<i8> for f64

source§

fn as_(self) -> i8

Convert a value to another, using the as operator.
source§

impl AsPrimitive<isize> for f64

source§

fn as_(self) -> isize

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u128> for f64

source§

fn as_(self) -> u128

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u16> for f64

source§

fn as_(self) -> u16

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u32> for f64

source§

fn as_(self) -> u32

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u64> for f64

source§

fn as_(self) -> u64

Convert a value to another, using the as operator.
source§

impl AsPrimitive<u8> for f64

source§

fn as_(self) -> u8

Convert a value to another, using the as operator.
source§

impl AsPrimitive<usize> for f64

source§

fn as_(self) -> usize

Convert a value to another, using the as operator.
source§

impl Bounded for f64

source§

fn min_value() -> f64

Returns the smallest finite number this type can represent
source§

fn max_value() -> f64

Returns the largest finite number this type can represent
1.0.0 · source§

impl Clone for f64

source§

fn clone(&self) -> f64

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl DeBin for f64

§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<f64, DeBinErr>

Parse Self from the input bytes starting at index offset. Read more
§

fn deserialize_bin(d: &[u8]) -> Result<Self, DeBinErr>

Parse Self from the input bytes. Read more
§

impl DeJson for f64

§

fn de_json(s: &mut DeJsonState, i: &mut Chars<'_>) -> Result<f64, DeJsonErr>

Parse Self from the input string. Read more
§

fn deserialize_json(input: &str) -> Result<Self, DeJsonErr>

Parse Self from the input string. Read more
§

impl DeRon for f64

§

fn de_ron(s: &mut DeRonState, i: &mut Chars<'_>) -> Result<f64, DeRonErr>

Parse Self from a RON string. Read more
§

fn deserialize_ron(input: &str) -> Result<Self, DeRonErr>

Parse Self from a RON string. Read more
1.0.0 · source§

impl Debug for f64

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
1.0.0 · source§

impl Default for f64

source§

fn default() -> f64

Returns the default value of 0.0

1.0.0 · source§

impl Display for f64

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a> Div<&'a Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the / operator.
source§

fn div(self, other: &Complex<f64>) -> Complex<f64>

Performs the / operation. Read more
1.0.0 · source§

impl Div<&f64> for f64

§

type Output = <f64 as Div<f64>>::Output

The resulting type after applying the / operator.
source§

fn div(self, other: &f64) -> <f64 as Div<f64>>::Output

Performs the / operation. Read more
source§

impl Div<Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the / operator.
source§

fn div(self, other: Complex<f64>) -> <f64 as Div<Complex<f64>>>::Output

Performs the / operation. Read more
source§

impl Div<DVec2> for f64

§

type Output = DVec2

The resulting type after applying the / operator.
source§

fn div(self, rhs: DVec2) -> DVec2

Performs the / operation. Read more
source§

impl Div<DVec3> for f64

§

type Output = DVec3

The resulting type after applying the / operator.
source§

fn div(self, rhs: DVec3) -> DVec3

Performs the / operation. Read more
source§

impl Div<DVec4> for f64

§

type Output = DVec4

The resulting type after applying the / operator.
source§

fn div(self, rhs: DVec4) -> DVec4

Performs the / operation. Read more
1.0.0 · source§

impl Div<f64> for f64

§

type Output = f64

The resulting type after applying the / operator.
source§

fn div(self, other: f64) -> f64

Performs the / operation. Read more
1.22.0 · source§

impl DivAssign<&f64> for f64

source§

fn div_assign(&mut self, other: &f64)

Performs the /= operation. Read more
1.8.0 · source§

impl DivAssign<f64> for f64

source§

fn div_assign(&mut self, other: f64)

Performs the /= operation. Read more
source§

impl Euclid for f64

source§

fn div_euclid(&self, v: &f64) -> f64

Calculates Euclidean division, the matching method for rem_euclid. Read more
source§

fn rem_euclid(&self, v: &f64) -> f64

Calculates the least nonnegative remainder of self (mod v). Read more
source§

impl Float for f64

source§

fn nan() -> f64

Returns the NaN value. Read more
source§

fn infinity() -> f64

Returns the infinite value. Read more
source§

fn neg_infinity() -> f64

Returns the negative infinite value. Read more
source§

fn neg_zero() -> f64

Returns -0.0. Read more
source§

fn min_value() -> f64

Returns the smallest finite value that this type can represent. Read more
source§

fn min_positive_value() -> f64

Returns the smallest positive, normalized value that this type can represent. Read more
source§

fn epsilon() -> f64

Returns epsilon, a small positive value. Read more
source§

fn max_value() -> f64

Returns the largest finite value that this type can represent. Read more
source§

fn abs_sub(self, other: f64) -> f64

The positive difference of two numbers. Read more
source§

fn integer_decode(self) -> (u64, i16, i8)

Returns the mantissa, base 2 exponent, and sign as integers, respectively. The original number can be recovered by sign * mantissa * 2 ^ exponent. Read more
source§

fn is_nan(self) -> bool

Returns true if this value is NaN and false otherwise. Read more
source§

fn is_infinite(self) -> bool

Returns true if this value is positive infinity or negative infinity and false otherwise. Read more
source§

fn is_finite(self) -> bool

Returns true if this number is neither infinite nor NaN. Read more
source§

fn is_normal(self) -> bool

Returns true if the number is neither zero, infinite, subnormal, or NaN. Read more
source§

fn classify(self) -> FpCategory

Returns the floating point category of the number. If only one property is going to be tested, it is generally faster to use the specific predicate instead. Read more
source§

fn floor(self) -> f64

Returns the largest integer less than or equal to a number. Read more
source§

fn ceil(self) -> f64

Returns the smallest integer greater than or equal to a number. Read more
source§

fn round(self) -> f64

Returns the nearest integer to a number. Round half-way cases away from 0.0. Read more
source§

fn trunc(self) -> f64

Return the integer part of a number. Read more
source§

fn fract(self) -> f64

Returns the fractional part of a number. Read more
source§

fn abs(self) -> f64

Computes the absolute value of self. Returns Float::nan() if the number is Float::nan(). Read more
source§

fn signum(self) -> f64

Returns a number that represents the sign of self. Read more
source§

fn is_sign_positive(self) -> bool

Returns true if self is positive, including +0.0, Float::infinity(), and Float::nan(). Read more
source§

fn is_sign_negative(self) -> bool

Returns true if self is negative, including -0.0, Float::neg_infinity(), and -Float::nan(). Read more
source§

fn mul_add(self, a: f64, b: f64) -> f64

Fused multiply-add. Computes (self * a) + b with only one rounding error, yielding a more accurate result than an unfused multiply-add. Read more
source§

fn recip(self) -> f64

Take the reciprocal (inverse) of a number, 1/x. Read more
source§

fn powi(self, n: i32) -> f64

Raise a number to an integer power. Read more
source§

fn powf(self, n: f64) -> f64

Raise a number to a floating point power. Read more
source§

fn sqrt(self) -> f64

Take the square root of a number. Read more
source§

fn exp(self) -> f64

Returns e^(self), (the exponential function). Read more
source§

fn exp2(self) -> f64

Returns 2^(self). Read more
source§

fn ln(self) -> f64

Returns the natural logarithm of the number. Read more
source§

fn log(self, base: f64) -> f64

Returns the logarithm of the number with respect to an arbitrary base. Read more
source§

fn log2(self) -> f64

Returns the base 2 logarithm of the number. Read more
source§

fn log10(self) -> f64

Returns the base 10 logarithm of the number. Read more
source§

fn to_degrees(self) -> f64

Converts radians to degrees. Read more
source§

fn to_radians(self) -> f64

Converts degrees to radians. Read more
source§

fn max(self, other: f64) -> f64

Returns the maximum of the two numbers. Read more
source§

fn min(self, other: f64) -> f64

Returns the minimum of the two numbers. Read more
source§

fn cbrt(self) -> f64

Take the cubic root of a number. Read more
source§

fn hypot(self, other: f64) -> f64

Calculate the length of the hypotenuse of a right-angle triangle given legs of length x and y. Read more
source§

fn sin(self) -> f64

Computes the sine of a number (in radians). Read more
source§

fn cos(self) -> f64

Computes the cosine of a number (in radians). Read more
source§

fn tan(self) -> f64

Computes the tangent of a number (in radians). Read more
source§

fn asin(self) -> f64

Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1]. Read more
source§

fn acos(self) -> f64

Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1]. Read more
source§

fn atan(self) -> f64

Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2]; Read more
source§

fn atan2(self, other: f64) -> f64

Computes the four quadrant arctangent of self (y) and other (x). Read more
source§

fn sin_cos(self) -> (f64, f64)

Simultaneously computes the sine and cosine of the number, x. Returns (sin(x), cos(x)). Read more
source§

fn exp_m1(self) -> f64

Returns e^(self) - 1 in a way that is accurate even if the number is close to zero. Read more
source§

fn ln_1p(self) -> f64

Returns ln(1+n) (natural logarithm) more accurately than if the operations were performed separately. Read more
source§

fn sinh(self) -> f64

Hyperbolic sine function. Read more
source§

fn cosh(self) -> f64

Hyperbolic cosine function. Read more
source§

fn tanh(self) -> f64

Hyperbolic tangent function. Read more
source§

fn asinh(self) -> f64

Inverse hyperbolic sine function. Read more
source§

fn acosh(self) -> f64

Inverse hyperbolic cosine function. Read more
source§

fn atanh(self) -> f64

Inverse hyperbolic tangent function. Read more
source§

fn copysign(self, sign: f64) -> f64

Returns a number composed of the magnitude of self and the sign of sign. Read more
source§

fn is_subnormal(self) -> bool

Returns true if the number is subnormal. Read more
source§

impl FloatConst for f64

source§

fn E() -> f64

Return Euler’s number.
source§

fn FRAC_1_PI() -> f64

Return 1.0 / π.
source§

fn FRAC_1_SQRT_2() -> f64

Return 1.0 / sqrt(2.0).
source§

fn FRAC_2_PI() -> f64

Return 2.0 / π.
source§

fn FRAC_2_SQRT_PI() -> f64

Return 2.0 / sqrt(π).
source§

fn FRAC_PI_2() -> f64

Return π / 2.0.
source§

fn FRAC_PI_3() -> f64

Return π / 3.0.
source§

fn FRAC_PI_4() -> f64

Return π / 4.0.
source§

fn FRAC_PI_6() -> f64

Return π / 6.0.
source§

fn FRAC_PI_8() -> f64

Return π / 8.0.
source§

fn LN_10() -> f64

Return ln(10.0).
source§

fn LN_2() -> f64

Return ln(2.0).
source§

fn LOG10_E() -> f64

Return log10(e).
source§

fn LOG2_E() -> f64

Return log2(e).
source§

fn PI() -> f64

Return Archimedes’ constant π.
source§

fn SQRT_2() -> f64

Return sqrt(2.0).
source§

fn TAU() -> f64

Return the full circle constant τ.
source§

fn LOG10_2() -> f64

Return log10(2.0).
source§

fn LOG2_10() -> f64

Return log2(10.0).
source§

impl FloatCore for f64

source§

fn infinity() -> f64

Returns positive infinity. Read more
source§

fn neg_infinity() -> f64

Returns negative infinity. Read more
source§

fn nan() -> f64

Returns NaN. Read more
source§

fn neg_zero() -> f64

Returns -0.0. Read more
source§

fn min_value() -> f64

Returns the smallest finite value that this type can represent. Read more
source§

fn min_positive_value() -> f64

Returns the smallest positive, normalized value that this type can represent. Read more
source§

fn epsilon() -> f64

Returns epsilon, a small positive value. Read more
source§

fn max_value() -> f64

Returns the largest finite value that this type can represent. Read more
source§

fn integer_decode(self) -> (u64, i16, i8)

Returns the mantissa, base 2 exponent, and sign as integers, respectively. The original number can be recovered by sign * mantissa * 2 ^ exponent. Read more
source§

fn is_nan(self) -> bool

Returns true if the number is NaN. Read more
source§

fn is_infinite(self) -> bool

Returns true if the number is infinite. Read more
source§

fn is_finite(self) -> bool

Returns true if the number is neither infinite or NaN. Read more
source§

fn is_normal(self) -> bool

Returns true if the number is neither zero, infinite, subnormal or NaN. Read more
source§

fn classify(self) -> FpCategory

Returns the floating point category of the number. If only one property is going to be tested, it is generally faster to use the specific predicate instead. Read more
source§

fn is_sign_positive(self) -> bool

Returns true if self is positive, including +0.0 and FloatCore::infinity(), and FloatCore::nan(). Read more
source§

fn is_sign_negative(self) -> bool

Returns true if self is negative, including -0.0 and FloatCore::neg_infinity(), and -FloatCore::nan(). Read more
source§

fn min(self, other: f64) -> f64

Returns the minimum of the two numbers. Read more
source§

fn max(self, other: f64) -> f64

Returns the maximum of the two numbers. Read more
source§

fn recip(self) -> f64

Returns the reciprocal (multiplicative inverse) of the number. Read more
source§

fn to_degrees(self) -> f64

Converts to degrees, assuming the number is in radians. Read more
source§

fn to_radians(self) -> f64

Converts to radians, assuming the number is in degrees. Read more
source§

fn is_subnormal(self) -> bool

Returns true if the number is subnormal. Read more
source§

fn floor(self) -> f64

Returns the largest integer less than or equal to a number. Read more
source§

fn ceil(self) -> f64

Returns the smallest integer greater than or equal to a number. Read more
source§

fn round(self) -> f64

Returns the nearest integer to a number. Round half-way cases away from 0.0. Read more
source§

fn trunc(self) -> f64

Return the integer part of a number. Read more
source§

fn fract(self) -> f64

Returns the fractional part of a number. Read more
source§

fn abs(self) -> f64

Computes the absolute value of self. Returns FloatCore::nan() if the number is FloatCore::nan(). Read more
source§

fn signum(self) -> f64

Returns a number that represents the sign of self. Read more
source§

fn powi(self, n: i32) -> f64

Raise a number to an integer power. Read more
§

impl FloatOrd for f64

§

fn ord(self) -> OrderedFloat<f64>

Type to provide total order, useful as key in sorted contexts.
§

impl From<NotNan<f64>> for f64

§

fn from(value: NotNan<f64>) -> f64

Converts to this type from the input type.
§

impl From<OrderedFloat<f64>> for f64

§

fn from(f: OrderedFloat<f64>) -> f64

Converts to this type from the input type.
§

impl From<TimeBase> for f64

§

fn from(timebase: TimeBase) -> f64

Converts to this type from the input type.
1.68.0 · source§

impl From<bool> for f64

source§

fn from(small: bool) -> f64

Converts bool to f64 losslessly. The resulting value is positive 0.0 for false and 1.0 for true values.

Examples
let x: f64 = false.into();
assert_eq!(x, 0.0);
assert!(x.is_sign_positive());

let y: f64 = true.into();
assert_eq!(y, 1.0);
1.6.0 · source§

impl From<f32> for f64

source§

fn from(small: f32) -> f64

Converts f32 to f64 losslessly.

1.6.0 · source§

impl From<i16> for f64

source§

fn from(small: i16) -> f64

Converts i16 to f64 losslessly.

1.6.0 · source§

impl From<i32> for f64

source§

fn from(small: i32) -> f64

Converts i32 to f64 losslessly.

1.6.0 · source§

impl From<i8> for f64

source§

fn from(small: i8) -> f64

Converts i8 to f64 losslessly.

1.6.0 · source§

impl From<u16> for f64

source§

fn from(small: u16) -> f64

Converts u16 to f64 losslessly.

1.6.0 · source§

impl From<u32> for f64

source§

fn from(small: u32) -> f64

Converts u32 to f64 losslessly.

1.6.0 · source§

impl From<u8> for f64

source§

fn from(small: u8) -> f64

Converts u8 to f64 losslessly.

source§

impl FromBytes for f64

§

type Bytes = [u8; 8]

source§

fn from_be_bytes(bytes: &<f64 as FromBytes>::Bytes) -> f64

Create a number from its representation as a byte array in big endian. Read more
source§

fn from_le_bytes(bytes: &<f64 as FromBytes>::Bytes) -> f64

Create a number from its representation as a byte array in little endian. Read more
source§

fn from_ne_bytes(bytes: &<f64 as FromBytes>::Bytes) -> f64

Create a number from its memory representation as a byte array in native endianness. Read more
source§

impl FromPrimitive for f64

source§

fn from_isize(n: isize) -> Option<f64>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<f64>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<f64>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<f64>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i64(n: i64) -> Option<f64>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i128(n: i128) -> Option<f64>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_usize(n: usize) -> Option<f64>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<f64>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<f64>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<f64>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<f64>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u128(n: u128) -> Option<f64>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_f32(n: f32) -> Option<f64>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<f64>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
1.0.0 · source§

impl FromStr for f64

source§

fn from_str(src: &str) -> Result<f64, ParseFloatError>

Converts a string in base 10 to a float. Accepts an optional decimal exponent.

This function accepts strings such as

  • ‘3.14’
  • ‘-3.14’
  • ‘2.5E10’, or equivalently, ‘2.5e10’
  • ‘2.5E-10’
  • ‘5.’
  • ‘.5’, or, equivalently, ‘0.5’
  • ‘inf’, ‘-inf’, ‘+infinity’, ‘NaN’

Note that alphabetical characters are not case-sensitive.

Leading and trailing whitespace represent an error.

Grammar

All strings that adhere to the following EBNF grammar when lowercased will result in an Ok being returned:

Float  ::= Sign? ( 'inf' | 'infinity' | 'nan' | Number )
Number ::= ( Digit+ |
             Digit+ '.' Digit* |
             Digit* '.' Digit+ ) Exp?
Exp    ::= 'e' Sign? Digit+
Sign   ::= [+-]
Digit  ::= [0-9]
Arguments
  • src - A string
Return value

Err(ParseFloatError) if the string did not represent a valid number. Otherwise, Ok(n) where n is the closest representable floating-point number to the number represented by src (following the same rules for rounding as for the results of primitive operations).

§

type Err = ParseFloatError

The associated error which can be returned from parsing.
source§

impl Inv for f64

§

type Output = f64

The result after applying the operator.
source§

fn inv(self) -> f64

Returns the multiplicative inverse of self. Read more
1.0.0 · source§

impl LowerExp for f64

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<'a> Mul<&'a Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the * operator.
source§

fn mul(self, other: &Complex<f64>) -> Complex<f64>

Performs the * operation. Read more
1.0.0 · source§

impl Mul<&f64> for f64

§

type Output = <f64 as Mul<f64>>::Output

The resulting type after applying the * operator.
source§

fn mul(self, other: &f64) -> <f64 as Mul<f64>>::Output

Performs the * operation. Read more
source§

impl Mul<Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the * operator.
source§

fn mul(self, other: Complex<f64>) -> <f64 as Mul<Complex<f64>>>::Output

Performs the * operation. Read more
source§

impl Mul<DMat2> for f64

§

type Output = DMat2

The resulting type after applying the * operator.
source§

fn mul(self, rhs: DMat2) -> <f64 as Mul<DMat2>>::Output

Performs the * operation. Read more
source§

impl Mul<DMat3> for f64

§

type Output = DMat3

The resulting type after applying the * operator.
source§

fn mul(self, rhs: DMat3) -> <f64 as Mul<DMat3>>::Output

Performs the * operation. Read more
source§

impl Mul<DMat4> for f64

§

type Output = DMat4

The resulting type after applying the * operator.
source§

fn mul(self, rhs: DMat4) -> <f64 as Mul<DMat4>>::Output

Performs the * operation. Read more
source§

impl Mul<DVec2> for f64

§

type Output = DVec2

The resulting type after applying the * operator.
source§

fn mul(self, rhs: DVec2) -> DVec2

Performs the * operation. Read more
source§

impl Mul<DVec3> for f64

§

type Output = DVec3

The resulting type after applying the * operator.
source§

fn mul(self, rhs: DVec3) -> DVec3

Performs the * operation. Read more
source§

impl Mul<DVec4> for f64

§

type Output = DVec4

The resulting type after applying the * operator.
source§

fn mul(self, rhs: DVec4) -> DVec4

Performs the * operation. Read more
1.0.0 · source§

impl Mul<f64> for f64

§

type Output = f64

The resulting type after applying the * operator.
source§

fn mul(self, other: f64) -> f64

Performs the * operation. Read more
source§

impl MulAdd<f64, f64> for f64

§

type Output = f64

The resulting type after applying the fused multiply-add.
source§

fn mul_add(self, a: f64, b: f64) -> <f64 as MulAdd<f64, f64>>::Output

Performs the fused multiply-add operation (self * a) + b
source§

impl MulAddAssign<f64, f64> for f64

source§

fn mul_add_assign(&mut self, a: f64, b: f64)

Performs the fused multiply-add assignment operation *self = (*self * a) + b
1.22.0 · source§

impl MulAssign<&f64> for f64

source§

fn mul_assign(&mut self, other: &f64)

Performs the *= operation. Read more
1.8.0 · source§

impl MulAssign<f64> for f64

source§

fn mul_assign(&mut self, other: f64)

Performs the *= operation. Read more
1.0.0 · source§

impl Neg for f64

§

type Output = f64

The resulting type after applying the - operator.
source§

fn neg(self) -> f64

Performs the unary - operation. Read more
source§

impl Num for f64

§

type FromStrRadixErr = ParseFloatError

source§

fn from_str_radix( src: &str, radix: u32 ) -> Result<f64, <f64 as Num>::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
source§

impl NumCast for f64

source§

fn from<N>(n: N) -> Option<f64>where N: ToPrimitive,

Creates a number from another value that can be converted into a primitive via the ToPrimitive trait. If the source value cannot be represented by the target type, then None is returned. Read more
§

impl NumExt for f64

§

fn at_least(self, lower_limit: f64) -> f64

More readable version of self.max(lower_limit)
§

fn at_most(self, upper_limit: f64) -> f64

More readable version of self.min(upper_limit)
§

impl Numeric for f64

§

const INTEGRAL: bool = false

Is this an integer type?
§

const MIN: f64 = -1.7976931348623157E+308f64

Smallest finite value
§

const MAX: f64 = 1.7976931348623157E+308f64

Largest finite value
§

fn to_f64(self) -> f64

§

fn from_f64(num: f64) -> f64

source§

impl One for f64

source§

fn one() -> f64

Returns the multiplicative identity element of Self, 1. Read more
source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
§

impl One for f64

§

fn one() -> f64

1.0.0 · source§

impl PartialEq<f64> for f64

source§

fn eq(&self, other: &f64) -> bool

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

fn ne(&self, other: &f64) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl PartialOrd<f64> for f64

source§

fn partial_cmp(&self, other: &f64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &f64) -> bool

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

fn le(&self, other: &f64) -> bool

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

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

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

fn gt(&self, other: &f64) -> bool

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

impl Pixel for f64

source§

fn from_f64(f: f64) -> f64

source§

fn cast<P>(self) -> Pwhere P: Pixel,

source§

impl<'a> Pow<&'a f32> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: &'a f32) -> f64

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a f64> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: &'a f64) -> f64

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a i16> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: &'a i16) -> f64

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a i32> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: &'a i32) -> f64

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a i8> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: &'a i8) -> f64

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a u16> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: &'a u16) -> f64

Returns self to the power rhs. Read more
source§

impl<'a> Pow<&'a u8> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: &'a u8) -> f64

Returns self to the power rhs. Read more
source§

impl Pow<f32> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: f32) -> f64

Returns self to the power rhs. Read more
source§

impl Pow<f64> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: f64) -> f64

Returns self to the power rhs. Read more
source§

impl Pow<i16> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: i16) -> f64

Returns self to the power rhs. Read more
source§

impl Pow<i32> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: i32) -> f64

Returns self to the power rhs. Read more
source§

impl Pow<i8> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: i8) -> f64

Returns self to the power rhs. Read more
source§

impl Pow<u16> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: u16) -> f64

Returns self to the power rhs. Read more
source§

impl Pow<u8> for f64

§

type Output = f64

The result after applying the operator.
source§

fn pow(self, rhs: u8) -> f64

Returns self to the power rhs. Read more
source§

impl Primitive for f64

source§

const DEFAULT_MAX_VALUE: f64 = 1f64

The maximum value for this type of primitive within the context of color. For floats, the maximum is 1.0, whereas the integer types inherit their usual maximum values.
source§

const DEFAULT_MIN_VALUE: f64 = 0f64

The minimum value for this type of primitive within the context of color. For floats, the minimum is 0.0, whereas the integer types inherit their usual minimum values.
1.12.0 · source§

impl<'a> Product<&'a f64> for f64

source§

fn product<I>(iter: I) -> f64where I: Iterator<Item = &'a f64>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
1.12.0 · source§

impl Product<f64> for f64

source§

fn product<I>(iter: I) -> f64where I: Iterator<Item = f64>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl RandomRange for f64

source§

fn gen_range(low: f64, high: f64) -> f64

source§

impl<'a> Rem<&'a Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the % operator.
source§

fn rem(self, other: &Complex<f64>) -> Complex<f64>

Performs the % operation. Read more
1.0.0 · source§

impl Rem<&f64> for f64

§

type Output = <f64 as Rem<f64>>::Output

The resulting type after applying the % operator.
source§

fn rem(self, other: &f64) -> <f64 as Rem<f64>>::Output

Performs the % operation. Read more
source§

impl Rem<Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the % operator.
source§

fn rem(self, other: Complex<f64>) -> <f64 as Rem<Complex<f64>>>::Output

Performs the % operation. Read more
source§

impl Rem<DVec2> for f64

§

type Output = DVec2

The resulting type after applying the % operator.
source§

fn rem(self, rhs: DVec2) -> DVec2

Performs the % operation. Read more
source§

impl Rem<DVec3> for f64

§

type Output = DVec3

The resulting type after applying the % operator.
source§

fn rem(self, rhs: DVec3) -> DVec3

Performs the % operation. Read more
source§

impl Rem<DVec4> for f64

§

type Output = DVec4

The resulting type after applying the % operator.
source§

fn rem(self, rhs: DVec4) -> DVec4

Performs the % operation. Read more
1.0.0 · source§

impl Rem<f64> for f64

The remainder from the division of two floats.

The remainder has the same sign as the dividend and is computed as: x - (x / y).trunc() * y.

Examples

let x: f32 = 50.50;
let y: f32 = 8.125;
let remainder = x - (x / y).trunc() * y;

// The answer to both operations is 1.75
assert_eq!(x % y, remainder);
§

type Output = f64

The resulting type after applying the % operator.
source§

fn rem(self, other: f64) -> f64

Performs the % operation. Read more
1.22.0 · source§

impl RemAssign<&f64> for f64

source§

fn rem_assign(&mut self, other: &f64)

Performs the %= operation. Read more
1.8.0 · source§

impl RemAssign<f64> for f64

source§

fn rem_assign(&mut self, other: f64)

Performs the %= operation. Read more
source§

impl SampleUniform for f64

§

type Sampler = UniformFloat<f64>

The UniformSampler implementation supporting type X.
§

impl SerBin for f64

§

fn ser_bin(&self, s: &mut Vec<u8, Global>)

Serialize Self to bytes. Read more
§

fn serialize_bin(&self) -> Vec<u8, Global>

Serialize Self to bytes. Read more
§

impl SerJson for f64

§

fn ser_json(&self, _d: usize, s: &mut SerJsonState)

Serialize Self to a JSON string. Read more
§

fn serialize_json(&self) -> String

Serialize Self to a JSON string. Read more
§

impl SerRon for f64

§

fn ser_ron(&self, _d: usize, s: &mut SerRonState)

Serialize Self to a RON string. Read more
§

fn serialize_ron(&self) -> String

Serialize Self to a RON string. Read more
source§

impl Signed for f64

source§

fn abs(&self) -> f64

Computes the absolute value. Returns NAN if the number is NAN.

source§

fn abs_sub(&self, other: &f64) -> f64

The positive difference of two numbers. Returns 0.0 if the number is less than or equal to other, otherwise the difference betweenself and other is returned.

source§

fn signum(&self) -> f64

Returns
  • 1.0 if the number is positive, +0.0 or INFINITY
  • -1.0 if the number is negative, -0.0 or NEG_INFINITY
  • NAN if the number is NaN
source§

fn is_positive(&self) -> bool

Returns true if the number is positive, including +0.0 and INFINITY

source§

fn is_negative(&self) -> bool

Returns true if the number is negative, including -0.0 and NEG_INFINITY

source§

impl SimdElement for f64

§

type Mask = i64

🔬This is a nightly-only experimental API. (portable_simd)
The mask element type corresponding to this element type.
source§

impl<'a> Sub<&'a Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the - operator.
source§

fn sub(self, other: &Complex<f64>) -> Complex<f64>

Performs the - operation. Read more
1.0.0 · source§

impl Sub<&f64> for f64

§

type Output = <f64 as Sub<f64>>::Output

The resulting type after applying the - operator.
source§

fn sub(self, other: &f64) -> <f64 as Sub<f64>>::Output

Performs the - operation. Read more
source§

impl Sub<Complex<f64>> for f64

§

type Output = Complex<f64>

The resulting type after applying the - operator.
source§

fn sub(self, other: Complex<f64>) -> <f64 as Sub<Complex<f64>>>::Output

Performs the - operation. Read more
source§

impl Sub<DVec2> for f64

§

type Output = DVec2

The resulting type after applying the - operator.
source§

fn sub(self, rhs: DVec2) -> DVec2

Performs the - operation. Read more
source§

impl Sub<DVec3> for f64

§

type Output = DVec3

The resulting type after applying the - operator.
source§

fn sub(self, rhs: DVec3) -> DVec3

Performs the - operation. Read more
source§

impl Sub<DVec4> for f64

§

type Output = DVec4

The resulting type after applying the - operator.
source§

fn sub(self, rhs: DVec4) -> DVec4

Performs the - operation. Read more
1.0.0 · source§

impl Sub<f64> for f64

§

type Output = f64

The resulting type after applying the - operator.
source§

fn sub(self, other: f64) -> f64

Performs the - operation. Read more
1.22.0 · source§

impl SubAssign<&f64> for f64

source§

fn sub_assign(&mut self, other: &f64)

Performs the -= operation. Read more
1.8.0 · source§

impl SubAssign<f64> for f64

source§

fn sub_assign(&mut self, other: f64)

Performs the -= operation. Read more
1.12.0 · source§

impl<'a> Sum<&'a f64> for f64

source§

fn sum<I>(iter: I) -> f64where I: Iterator<Item = &'a f64>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
1.12.0 · source§

impl Sum<f64> for f64

source§

fn sum<I>(iter: I) -> f64where I: Iterator<Item = f64>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl ToBytes for f64

§

type Bytes = [u8; 8]

source§

fn to_be_bytes(&self) -> <f64 as ToBytes>::Bytes

Return the memory representation of this number as a byte array in big-endian byte order. Read more
source§

fn to_le_bytes(&self) -> <f64 as ToBytes>::Bytes

Return the memory representation of this number as a byte array in little-endian byte order. Read more
source§

fn to_ne_bytes(&self) -> <f64 as ToBytes>::Bytes

Return the memory representation of this number as a byte array in native byte order. Read more
source§

impl ToPrimitive for f64

source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
§

impl Tweakable for f64

§

fn parse(x: &str) -> Option<f64>

§

impl Tweenable for f64

§

fn interpolate(a: f64, b: f64, amount: f64) -> f64

Returns an linearly interpolated value between a and b. Read more
1.0.0 · source§

impl UpperExp for f64

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl Zero for f64

source§

fn zero() -> f64

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl Zeroable for f64

source§

fn zeroed() -> Self

1.0.0 · source§

impl Copy for f64

source§

impl FloatToInt<i128> for f64

source§

impl FloatToInt<i16> for f64

source§

impl FloatToInt<i32> for f64

source§

impl FloatToInt<i64> for f64

source§

impl FloatToInt<i8> for f64

source§

impl FloatToInt<isize> for f64

source§

impl FloatToInt<u128> for f64

source§

impl FloatToInt<u16> for f64

source§

impl FloatToInt<u32> for f64

source§

impl FloatToInt<u64> for f64

source§

impl FloatToInt<u8> for f64

source§

impl FloatToInt<usize> for f64

source§

impl Pod for f64

§

impl Real for f64

source§

impl SimdCast for f64