Enum tc_value::Float

source ·
pub enum Float {
    F32(f32),
    F64(f64),
}
Expand description

A floating-point number.

Variants§

§

F32(f32)

§

F64(f64)

Trait Implementations§

The resulting type after applying the + operator.
Performs the + operation. Read more
Performs the += operation. Read more
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
Performs the /= operation. Read more
Return true if this Number is infinite (e.g. f32::INFINITY).
Return true if this is not a valid number (NaN).
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Parse this value using the given Decoder.
Compute the SHA-2 hash of this value
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
Take ownership of this value and serialize it into the given encoder.
The resulting type after applying the * operator.
Performs the * operation. Read more
Performs the *= operation. Read more
Get an impl of NumberClass describing this number.
Cast this number into the specified NumberClass.
Calculate the absolute value of this number.
Raise e to the power of this number.
Compute the natural logarithm of this number.
Compute the logarithm of this number with respect to the given base.
Raise this number to the given exponent. Read more
Return this number rounded to the nearest integer.
Return true if self and other are nonzero.
Return true if this number is zero.
Return true if self or other is nonzero.
Return true if exactly one of self and other is zero.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method returns an ordering between self and other values if one exists. Read more
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
Method which takes an iterator and generates Self from the elements by multiplying the items.
The resulting type after applying the % operator.
Performs the % operation. Read more
Performs the %= operation. Read more
Serialize this value into the given Serde serializer. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
Performs the -= operation. Read more
Method which takes an iterator and generates Self from the elements by “summing up” the items.
Serialize this value into the given encoder.
Arcsine
Sine
Hyperbolic sine
Hyperbolic arcsine
Hyperbolic arccosine
Cosine
Hyperbolic cosine
Hyperbolic arccosine
Arctangent
Tangent
Hyperbolic tangent
Hyperbolic arctangent
Test if value can be cast into Self.
Returns Some(Self) if the source value can be cast into Self, otherwise None.
Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Cast an instance of T into an instance of Self.
Cast an instance of Self into an instance of T.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Returns true if self can be cast into the target type T.
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
Test if value can be cast into Self.
Returns Some(Self) if the source value can be cast into Self, otherwise None.
Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.
Test if self can be cast into T.
Returns Some(T) if self can be cast into T, otherwise None.
Returns Ok(T) if self can be cast into T, otherwise calls on_err.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.