Struct exmex::FloatOpsFactory
source · [−]pub struct FloatOpsFactory<T: Float> { /* private fields */ }
Expand description
Factory of default operators for floating point values.
representation | description |
---|---|
^ | power |
* | product |
/ | division |
+ | addition as binary or identity as unary operator |
- | subtraction as binary or inverting the sign as unary operator |
abs | absolute value |
signum | signum |
sin | sine |
cos | cosine |
tan | tangent |
asin | inverse sine |
acos | inverse cosine |
atan | inverse tangent |
sinh | hyperbolic sine |
cosh | hyperbolic cosine |
tanh | hyperbolic tangent |
floor | largest integer less than or equal to a number |
ceil | smallest integer greater than or equal to a number |
trunc | integer part of a number |
fract | fractional part of a number |
exp | exponential functionn |
sqrt | square root |
cbrt | cube root |
ln | natural logarithm |
log2 | logarithm with basis 2 |
log10 | logarithm with basis 10 |
log | natural logarithm |
PI | constant π |
π | second representation of constant π |
TAU | constant τ=2π |
τ | second representation of constant τ |
E | Euler’s number |
e | second representation of Euler’s number |
Trait Implementations
sourceimpl<T: Clone + Float> Clone for FloatOpsFactory<T>
impl<T: Clone + Float> Clone for FloatOpsFactory<T>
sourcefn clone(&self) -> FloatOpsFactory<T>
fn clone(&self) -> FloatOpsFactory<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug + Float> Debug for FloatOpsFactory<T>
impl<T: Debug + Float> Debug for FloatOpsFactory<T>
sourceimpl<T: Float> MakeOperators<T> for FloatOpsFactory<T>
impl<T: Float> MakeOperators<T> for FloatOpsFactory<T>
sourceimpl<T: Ord + Float> Ord for FloatOpsFactory<T>
impl<T: Ord + Float> Ord for FloatOpsFactory<T>
sourcefn cmp(&self, other: &FloatOpsFactory<T>) -> Ordering
fn cmp(&self, other: &FloatOpsFactory<T>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq + Float> PartialEq<FloatOpsFactory<T>> for FloatOpsFactory<T>
impl<T: PartialEq + Float> PartialEq<FloatOpsFactory<T>> for FloatOpsFactory<T>
sourcefn eq(&self, other: &FloatOpsFactory<T>) -> bool
fn eq(&self, other: &FloatOpsFactory<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<T: PartialOrd + Float> PartialOrd<FloatOpsFactory<T>> for FloatOpsFactory<T>
impl<T: PartialOrd + Float> PartialOrd<FloatOpsFactory<T>> for FloatOpsFactory<T>
sourcefn partial_cmp(&self, other: &FloatOpsFactory<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &FloatOpsFactory<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: Eq + Float> Eq for FloatOpsFactory<T>
impl<T: Float> StructuralEq for FloatOpsFactory<T>
impl<T: Float> StructuralPartialEq for FloatOpsFactory<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for FloatOpsFactory<T> where
T: RefUnwindSafe,
impl<T> Send for FloatOpsFactory<T> where
T: Send,
impl<T> Sync for FloatOpsFactory<T> where
T: Sync,
impl<T> Unpin for FloatOpsFactory<T> where
T: Unpin,
impl<T> UnwindSafe for FloatOpsFactory<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more