pub enum FoldSemiring {
AddMult,
MaxMin,
}Expand description
Probability semiring selected for a FOLD evaluation.
Mirrors the host’s uni_locy::SemiringKind minus the provenance-only
TopKProofs / BddExact variants, which are handled above the aggregate
trait by the executor. Plugin aggregates only ever see the two value-level
combinators: independence (AddMult) and Viterbi/fuzzy (MaxMin).
Variants§
AddMult
Independence-mode probability: noisy-OR (1 − ∏(1 − pᵢ)) / product.
MaxMin
Viterbi / fuzzy-truth: max-disjunction / min-conjunction.
Trait Implementations§
Source§impl Clone for FoldSemiring
impl Clone for FoldSemiring
Source§fn clone(&self) -> FoldSemiring
fn clone(&self) -> FoldSemiring
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FoldSemiring
Source§impl Debug for FoldSemiring
impl Debug for FoldSemiring
Source§impl Default for FoldSemiring
impl Default for FoldSemiring
Source§fn default() -> FoldSemiring
fn default() -> FoldSemiring
Returns the “default value” for a type. Read more
impl Eq for FoldSemiring
Source§impl PartialEq for FoldSemiring
impl PartialEq for FoldSemiring
Source§fn eq(&self, other: &FoldSemiring) -> bool
fn eq(&self, other: &FoldSemiring) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FoldSemiring
Auto Trait Implementations§
impl Freeze for FoldSemiring
impl RefUnwindSafe for FoldSemiring
impl Send for FoldSemiring
impl Sync for FoldSemiring
impl Unpin for FoldSemiring
impl UnsafeUnpin for FoldSemiring
impl UnwindSafe for FoldSemiring
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more