pub enum UnaryOp {
Neg,
Real,
Imag,
Conj,
NormSqr,
Sqrt,
Exp,
Sin,
Cos,
Log,
PowI(i32),
}Expand description
Unary operation in an expression graph.
Variants§
Neg
Arithmetic negation.
Real
Real part.
Imag
Imaginary part.
Conj
Complex conjugate.
NormSqr
Squared complex norm.
Sqrt
Principal square root.
Exp
Exponential.
Sin
Sine.
Cos
Cosine.
Log
Natural logarithm.
PowI(i32)
Integer power.
Implementations§
Trait Implementations§
impl Copy for UnaryOp
Source§impl<'de> Deserialize<'de> for UnaryOp
impl<'de> Deserialize<'de> for UnaryOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations§
impl Freeze for UnaryOp
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnsafeUnpin for UnaryOp
impl UnwindSafe for UnaryOp
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