Trait lattices::Zero

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

Trait to check if semiring contains a zero.

Required Methods§

source

fn zero(&self) -> T

Returns the zero element of the semiring. Identify for the Addition operation.

Implementors§

source§

impl Zero<U32WithInfinity> for Cost

Implementation of Identity for addition.

source§

impl Zero<bool> for BinaryTrust

Implementation of Identity for addition.

source§

impl Zero<f64> for ConfidenceScore

Implementation of Identity for addition.

source§

impl Zero<f64> for FuzzyLogic

Implementation of Identity for addition.

source§

impl Zero<u32> for Multiplicity

Implementation of Identity for addition.