pub struct ConfidenceState {
pub bloom: [u8; 32],
pub parity: u8,
pub certainty: f64,
}Expand description
Confidence state captures certainty about a proposition using a bloom filter hash, XOR parity (Euler characteristic), and scalar certainty.
Fields§
§bloom: [u8; 32]Bloom filter hash (32 bytes)
parity: u8XOR parity (Euler χ)
certainty: f64Certainty scalar 0.0-1.0
Implementations§
Trait Implementations§
Source§impl Clone for ConfidenceState
impl Clone for ConfidenceState
Source§fn clone(&self) -> ConfidenceState
fn clone(&self) -> ConfidenceState
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 moreSource§impl Debug for ConfidenceState
impl Debug for ConfidenceState
Source§impl<'de> Deserialize<'de> for ConfidenceState
impl<'de> Deserialize<'de> for ConfidenceState
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 ConfidenceState
impl PartialEq for ConfidenceState
Source§fn eq(&self, other: &ConfidenceState) -> bool
fn eq(&self, other: &ConfidenceState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfidenceState
impl Serialize for ConfidenceState
impl StructuralPartialEq for ConfidenceState
Auto Trait Implementations§
impl Freeze for ConfidenceState
impl RefUnwindSafe for ConfidenceState
impl Send for ConfidenceState
impl Sync for ConfidenceState
impl Unpin for ConfidenceState
impl UnsafeUnpin for ConfidenceState
impl UnwindSafe for ConfidenceState
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