Trait AddMul

Source
pub trait AddMul<Y = Self, Z = Self> {
    type Output;

    // Required method
    fn add_mul(self, y: Y, z: Z) -> Self::Output;
}
Expand description

Adds a number and the product of two other numbers.

Required Associated Types§

Required Methods§

Source

fn add_mul(self, y: Y, z: Z) -> Self::Output

Implementations on Foreign Types§

Source§

impl AddMul for f32

Source§

fn add_mul(self, y: f32, z: f32) -> f32

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = f32

Source§

impl AddMul for f64

Source§

fn add_mul(self, y: f64, z: f64) -> f64

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = f64

Source§

impl AddMul for i8

Source§

fn add_mul(self, y: i8, z: i8) -> i8

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = i8

Source§

impl AddMul for i16

Source§

fn add_mul(self, y: i16, z: i16) -> i16

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = i16

Source§

impl AddMul for i32

Source§

fn add_mul(self, y: i32, z: i32) -> i32

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = i32

Source§

impl AddMul for i64

Source§

fn add_mul(self, y: i64, z: i64) -> i64

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = i64

Source§

impl AddMul for i128

Source§

fn add_mul(self, y: i128, z: i128) -> i128

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = i128

Source§

impl AddMul for isize

Source§

fn add_mul(self, y: isize, z: isize) -> isize

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = isize

Source§

impl AddMul for u8

Source§

fn add_mul(self, y: u8, z: u8) -> u8

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = u8

Source§

impl AddMul for u16

Source§

fn add_mul(self, y: u16, z: u16) -> u16

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = u16

Source§

impl AddMul for u32

Source§

fn add_mul(self, y: u32, z: u32) -> u32

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = u32

Source§

impl AddMul for u64

Source§

fn add_mul(self, y: u64, z: u64) -> u64

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = u64

Source§

impl AddMul for u128

Source§

fn add_mul(self, y: u128, z: u128) -> u128

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = u128

Source§

impl AddMul for usize

Source§

fn add_mul(self, y: usize, z: usize) -> usize

Adds a number and the product of two other numbers.

$f(x, y, z) = x + yz$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

type Output = usize

Implementors§