Trait NormalOut2

Source
pub trait NormalOut2 {
    // Required methods
    fn __add(self, rhs: Self) -> Self;
    fn __sub(self, rhs: Self) -> Self;
    fn __mul_add(self, a: Self, b: Self) -> Self;
    fn __mul(self, rhs: Self) -> Self;
    fn __pow(self, rhs: Self) -> Self;
    fn __rem(self, rhs: Self) -> Self;
    fn __max(self, rhs: Self) -> Self;
    fn __min(self, rhs: Self) -> Self;
    fn __clamp(self, min: Self, max: Self) -> Self;
}
Expand description

internal trait for normal out

Required Methods§

Source

fn __add(self, rhs: Self) -> Self

perform a + b

Source

fn __sub(self, rhs: Self) -> Self

perform a - b

Source

fn __mul_add(self, a: Self, b: Self) -> Self

perform self * a + b, fused multiply add if the hardware supports it, it can speed up the calculation and reduce the rounding error

Source

fn __mul(self, rhs: Self) -> Self

perform a * b

Source

fn __pow(self, rhs: Self) -> Self

perform ab

Source

fn __rem(self, rhs: Self) -> Self

perform a % b

Source

fn __max(self, rhs: Self) -> Self

perform max(x, y)

Source

fn __min(self, rhs: Self) -> Self

perform min(x, y)

Source

fn __clamp(self, min: Self, max: Self) -> Self

restrict the value of x to the range [min, max]

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.

Implementations on Foreign Types§

Source§

impl NormalOut2 for bool

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, _: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, _: Self) -> Self

Source§

fn __rem(self, _: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, _: Self, _: Self) -> Self

Source§

impl NormalOut2 for f32

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for f64

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for i8

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for i16

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for i32

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for i64

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for i128

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for isize

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for u8

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for u16

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for u32

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for u64

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for u128

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for usize

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for bf16

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for f16

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for Complex<f32>

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Source§

impl NormalOut2 for Complex<f64>

Source§

fn __add(self, rhs: Self) -> Self

Source§

fn __sub(self, rhs: Self) -> Self

Source§

fn __mul_add(self, a: Self, b: Self) -> Self

Source§

fn __mul(self, rhs: Self) -> Self

Source§

fn __pow(self, rhs: Self) -> Self

Source§

fn __rem(self, rhs: Self) -> Self

Source§

fn __max(self, rhs: Self) -> Self

Source§

fn __min(self, rhs: Self) -> Self

Source§

fn __clamp(self, min: Self, max: Self) -> Self

Implementors§