Trait lattices::One

source ·
pub trait One<T> {
    // Required method
    fn one(&self) -> T;
}
Expand description

Trait to define a one in a semiring.

Required Methods§

source

fn one(&self) -> T

Returns the one element of the semiring. Identity for the multiplication operation.

Implementors§

source§

impl One<U32WithInfinity> for Cost

Implementation of Identity for multiplication.

source§

impl One<bool> for BinaryTrust

Implementation of Identity for multiplication.

source§

impl One<f64> for ConfidenceScore

Implementation of Identity for multiplication.

source§

impl One<f64> for FuzzyLogic

Implementation of Identity for multiplication.

source§

impl One<u32> for Multiplicity

Implementation of Identity for multiplication.