Struct exmex::FloatOpsFactory
source · pub struct FloatOpsFactory<T> { /* 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§
source§impl<T: Clone> Clone for FloatOpsFactory<T>
impl<T: Clone> Clone for FloatOpsFactory<T>
source§fn clone(&self) -> FloatOpsFactory<T>
fn clone(&self) -> FloatOpsFactory<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for FloatOpsFactory<T>
impl<T: Debug> Debug for FloatOpsFactory<T>
source§impl<T: Debug + Float> MakeOperators<T> for FloatOpsFactory<T>
impl<T: Debug + Float> MakeOperators<T> for FloatOpsFactory<T>
source§impl<T: Ord> Ord for FloatOpsFactory<T>
impl<T: Ord> Ord for FloatOpsFactory<T>
source§fn cmp(&self, other: &FloatOpsFactory<T>) -> Ordering
fn cmp(&self, other: &FloatOpsFactory<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for FloatOpsFactory<T>
impl<T: PartialEq> PartialEq for FloatOpsFactory<T>
source§impl<T: PartialOrd> PartialOrd for FloatOpsFactory<T>
impl<T: PartialOrd> PartialOrd for FloatOpsFactory<T>
impl<T: Eq> Eq for FloatOpsFactory<T>
impl<T> StructuralPartialEq for FloatOpsFactory<T>
Auto Trait Implementations§
impl<T> Freeze for FloatOpsFactory<T>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)