Trait lattices::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.

Object Safety§

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.