Product

Trait Product 

Source
pub trait Product {
    // Required method
    fn product(self, other: Self) -> Self;
}
Expand description

Trait defining the product of two numbers.

For bool this is the same as boolean AND; otherwise it’s the same as Mul.

Required Methods§

Source

fn product(self, other: 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.

Implementations on Foreign Types§

Source§

impl Product for bool

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for f32

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for f64

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for i16

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for i32

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for i64

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for u8

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for u16

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for u32

Source§

fn product(self, other: Self) -> Self

Source§

impl Product for u64

Source§

fn product(self, other: Self) -> Self

Implementors§