pub enum UnOp {
Neg,
Abs,
Sin,
Cos,
Tan,
Sqrt,
Exp,
Ln,
Tanh,
}Expand description
A single unary math primitive.
Variants§
Neg
negate
Abs
absolute value
Sin
sine
Cos
cosine
Tan
tangent
Sqrt
square root
Exp
e^x
Ln
natural log
Tanh
hyperbolic tangent
Trait Implementations§
impl Copy for UnOp
impl StructuralPartialEq for UnOp
Auto Trait Implementations§
impl Freeze for UnOp
impl RefUnwindSafe for UnOp
impl Send for UnOp
impl Sync for UnOp
impl Unpin for UnOp
impl UnsafeUnpin for UnOp
impl UnwindSafe for UnOp
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