pub trait MathOps<T> {
// Required methods
fn abs(&self) -> Self;
fn norm(&self) -> Self;
fn exp(&self) -> Self;
fn log(&self) -> Self;
fn sqrt(&self) -> Self;
fn conj(&self) -> Self;
fn real(&self) -> Self;
fn imag(&self) -> Self;
}Expand description
Mathematical functions for expressions
Required Methods§
fn abs(&self) -> Self
fn norm(&self) -> Self
fn exp(&self) -> Self
fn log(&self) -> Self
fn sqrt(&self) -> Self
fn conj(&self) -> Self
fn real(&self) -> Self
fn imag(&self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.