Trait qcd_sme::types::Num

source ·
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§

source

fn abs(&self) -> R

source

fn exp(&self) -> Self

source

fn im(&self) -> R

source

fn inv(&self) -> Self

source

fn ln(&self) -> Self

source

fn re(&self) -> R

source

fn sqrt(&self) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Num for C

source§

impl Num for R