pub enum McCountStrategy {
QueriesAndEvidence,
QueriesOnly,
}Expand description
Strategy for counting evidence-satisfied samples in the MC loop.
In QueriesOnly mode (used with evidence clamping), evidence is
guaranteed to hold in every sample, so we skip the truth-kernel’s
evidence check and evidence-side buffer allocations.
Variants§
QueriesAndEvidence
Full path: check both queries and evidence each sample.
QueriesOnly
Clamped path: evidence is always satisfied; only accumulate query flags.
Implementations§
Source§impl McCountStrategy
impl McCountStrategy
Sourcepub fn from_method(method: McSamplingMethod) -> Self
pub fn from_method(method: McSamplingMethod) -> Self
Derive the count strategy from the chosen sampling method.
Trait Implementations§
Source§impl Clone for McCountStrategy
impl Clone for McCountStrategy
Source§fn clone(&self) -> McCountStrategy
fn clone(&self) -> McCountStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McCountStrategy
impl Debug for McCountStrategy
Source§impl PartialEq for McCountStrategy
impl PartialEq for McCountStrategy
impl Copy for McCountStrategy
impl Eq for McCountStrategy
impl StructuralPartialEq for McCountStrategy
Auto Trait Implementations§
impl Freeze for McCountStrategy
impl RefUnwindSafe for McCountStrategy
impl Send for McCountStrategy
impl Sync for McCountStrategy
impl Unpin for McCountStrategy
impl UnsafeUnpin for McCountStrategy
impl UnwindSafe for McCountStrategy
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more