Trait Addition

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

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

Trait for Semiring Addition.

Required Methods§

Source

fn add(&mut self, other: Self)

Add-assign other into self.

Provided Methods§

Source

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

Add 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 Addition<BinaryTrust> for BinaryTrust

Implementation of the addition trait for the Binary Trust semiring.

Source§

impl Addition<ConfidenceScore> for ConfidenceScore

Implementation of the addition trait for ConfidenceScore semiring.

Source§

impl Addition<Cost> for Cost

Implementation of the addition trait for Cost semiring.

Source§

impl Addition<FuzzyLogic> for FuzzyLogic

Implementation of the addition trait for FuzzyLogic semiring.

Source§

impl Addition<Multiplicity> for Multiplicity

Implementation of the addition trait for Multiplicity semiring.