pub enum BooleanEstimate {
Value(bool),
ProbabilityTrue(Probability),
}Expand description
Preserves Boolean-only answers without inventing probability or certainty.
Variants§
Value(bool)
A Boolean judgment with no probability supplied.
ProbabilityTrue(Probability)
Probability of true; algorithms choose their own thresholds.
Trait Implementations§
Source§impl Clone for BooleanEstimate
impl Clone for BooleanEstimate
Source§fn clone(&self) -> BooleanEstimate
fn clone(&self) -> BooleanEstimate
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 BooleanEstimate
impl Debug for BooleanEstimate
Source§impl<'de> Deserialize<'de> for BooleanEstimate
impl<'de> Deserialize<'de> for BooleanEstimate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BooleanEstimate
impl PartialEq for BooleanEstimate
Source§impl Serialize for BooleanEstimate
impl Serialize for BooleanEstimate
impl Copy for BooleanEstimate
impl StructuralPartialEq for BooleanEstimate
Auto Trait Implementations§
impl Freeze for BooleanEstimate
impl RefUnwindSafe for BooleanEstimate
impl Send for BooleanEstimate
impl Sync for BooleanEstimate
impl Unpin for BooleanEstimate
impl UnsafeUnpin for BooleanEstimate
impl UnwindSafe for BooleanEstimate
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