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§
Provided Methods§
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§
impl Addition<BinaryTrust> for BinaryTrust
Implementation of the addition trait for the Binary Trust semiring.
impl Addition<ConfidenceScore> for ConfidenceScore
Implementation of the addition trait for ConfidenceScore semiring.
impl Addition<Cost> for Cost
Implementation of the addition trait for Cost semiring.
impl Addition<FuzzyLogic> for FuzzyLogic
Implementation of the addition trait for FuzzyLogic semiring.
impl Addition<Multiplicity> for Multiplicity
Implementation of the addition trait for Multiplicity semiring.