Trait Multiplication

Source
pub trait Multiplication<Other> {
    // Required method
    fn mul(&mut self, other: Self);

    // Provided method
    fn mul_owned(self, other: Self) -> Self
       where Self: Sized { ... }
}
Expand description

Trait for Semiring Multiplication.

Required Methods§

Source

fn mul(&mut self, other: Self)

Multiply-assign other into self.

Provided Methods§

Source

fn mul_owned(self, other: Self) -> Self
where Self: Sized,

Multiply this and delta together, returning the new value.

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.

Implementors§

Source§

impl Multiplication<BinaryTrust> for BinaryTrust

Implementation of the multiplication trait for the Binary Trust semiring.

Source§

impl Multiplication<ConfidenceScore> for ConfidenceScore

Implementation of the multiplication trait for ConfidenceScore semiring.

Source§

impl Multiplication<Cost> for Cost

Implementation of the multiplication trait for Cost semiring.

Source§

impl Multiplication<FuzzyLogic> for FuzzyLogic

Implementation of the multiplication trait for FuzzyLogic semiring.

Source§

impl Multiplication<Multiplicity> for Multiplicity

Implementation of the multiplication trait for Multiplicity semiring.