pub struct F32(_);
Expand description

A NaN preserving f32 type.

Implementations

Creates a float from its underlying bits.

Returns the underlying bits of the float.

Creates a float from the respective primitive float type.

Returns the respective primitive float type.

Returns true if the float is not a number (NaN).

Returns the absolute value of the float.

Returns the fractional part of the float.

Returns the minimum float between self and other.

Returns the maximum float between self and other.

Trait Implementations

The resulting type after applying the + operator.
Performs the + operation. Read more
Add two values.
Subtract two values.
Multiply two values.
Divide two values.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
Convert one type to another by extending with leading zeroes.
Convert one type to another by extending with leading zeroes.
Convert one type to another by extending with leading zeroes.
Get absolute value.
Returns the largest integer less than or equal to a number.
Returns the smallest integer greater than or equal to a number.
Returns the integer part of a number.
Returns the nearest integer to a number. Round half-way cases away from 0.0.
Returns the nearest integer to a number. Ties are round to even number.
Takes the square root of a number.
Returns true if the sign of the number is positive.
Returns true if the sign of the number is negative.
Returns the minimum of the two numbers.
Returns the maximum of the two numbers.
Sets sign of this value to the sign of other value.
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.
Create a value of type Self from a given Value. Read more
The little endian bytes representation.
Converts self into little endian bytes.
Converts little endian bytes into Self.
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the - operator.
Performs the unary - operation. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
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
The resulting type after applying the % operator.
Performs the % operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
Reinterprets the bits of a value of one type as another type.
Reinterprets the bits of a value of one type as another type.
Reinterprets the bits of a value of one type as another type.
Reinterprets the bits of a value of one type as another type.
Reinterprets the bits of a value of one type as another type.
Reinterprets the bits of a value of one type as another type.
Reinterprets the bits of a value of one type as another type.
Convert one type to another by rounding to the nearest integer towards zero.
Convert one type to another by rounding to the nearest integer towards zero.
Convert one type to another by rounding to the nearest integer towards zero.
Convert one type to another by rounding to the nearest integer towards zero.
Convert one type to another by rounding to the nearest integer towards zero.
Convert one type to another by rounding to the nearest integer towards zero.
Convert one type to another by rounding to the nearest integer towards zero.
Convert one type to another by rounding to the nearest integer towards zero.
Convert one type to another by wrapping.
Convert one type to another by wrapping.
Convert one type to another by wrapping.

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
Decodes the slice of UntypedValue as a value of type Self. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more
Encodes the slice of UntypedValue from the given value of type Self. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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
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.