Struct rhai::FloatWrapper [−][src]
pub struct FloatWrapper<F>(_);
Expand description
A type that wraps a floating-point number and implements Hash
.
Not available under no_float
.
Implementations
Maximum floating-point number for natural display before switching to scientific notation.
Minimum floating-point number for natural display before switching to scientific notation.
Create a new FloatWrapper
.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Auto Trait Implementations
impl<F> RefUnwindSafe for FloatWrapper<F> where
F: RefUnwindSafe,
impl<F> Send for FloatWrapper<F> where
F: Send,
impl<F> Sync for FloatWrapper<F> where
F: Sync,
impl<F> Unpin for FloatWrapper<F> where
F: Unpin,
impl<F> UnwindSafe for FloatWrapper<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more