pub trait Num: Copy + Num + Debug + Display + Add<R, Output = Self> + Mul<R, Output = Self> + Div<R, Output = Self> + Sub<R, Output = Self> + Neg<Output = Self> + Add<C, Output = C> + Sub<C, Output = C> + Mul<C, Output = C> + Div<C, Output = C> + From<R> + Into<C> {
// Required methods
fn abs(&self) -> R;
fn exp(&self) -> Self;
fn im(&self) -> R;
fn inv(&self) -> Self;
fn ln(&self) -> Self;
fn re(&self) -> R;
fn sqrt(&self) -> Self;
}Expand description
A number.
Required Methods§
fn abs(&self) -> R
fn exp(&self) -> Self
fn im(&self) -> R
fn inv(&self) -> Self
fn ln(&self) -> Self
fn re(&self) -> R
fn sqrt(&self) -> Self
Object Safety§
This trait is not object safe.