pub struct EpistemicState {
pub truth_status: TruthStatus,
pub proof_status: ProofStatus,
pub usefulness: Usefulness,
}Expand description
Combined memory epistemic state plus utility.
Fields§
§truth_status: TruthStatusClaim truth status.
proof_status: ProofStatusProof closure status.
usefulness: UsefulnessRetrieval/usefulness signal.
Implementations§
Source§impl EpistemicState
impl EpistemicState
Sourcepub const fn new(
truth_status: TruthStatus,
proof_status: ProofStatus,
usefulness: Usefulness,
) -> Self
pub const fn new( truth_status: TruthStatus, proof_status: ProofStatus, usefulness: Usefulness, ) -> Self
Construct a separated epistemic state.
Sourcepub fn apply_utility_signal(self, signal: UtilitySignal) -> Self
pub fn apply_utility_signal(self, signal: UtilitySignal) -> Self
Apply utility without changing truth or proof.
Sourcepub fn with_truth_status(
self,
truth_status: TruthStatus,
evidence: TruthTransitionEvidence,
) -> EpistemicResult<Self>
pub fn with_truth_status( self, truth_status: TruthStatus, evidence: TruthTransitionEvidence, ) -> EpistemicResult<Self>
Attempt a truth transition. Utility signals are rejected.
Sourcepub fn with_proof_status(
self,
proof_status: ProofStatus,
evidence: ProofTransitionEvidence,
) -> EpistemicResult<Self>
pub fn with_proof_status( self, proof_status: ProofStatus, evidence: ProofTransitionEvidence, ) -> EpistemicResult<Self>
Attempt a proof transition. Utility signals are rejected.
Trait Implementations§
Source§impl Clone for EpistemicState
impl Clone for EpistemicState
Source§fn clone(&self) -> EpistemicState
fn clone(&self) -> EpistemicState
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 EpistemicState
impl Debug for EpistemicState
Source§impl PartialEq for EpistemicState
impl PartialEq for EpistemicState
Source§fn eq(&self, other: &EpistemicState) -> bool
fn eq(&self, other: &EpistemicState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EpistemicState
impl StructuralPartialEq for EpistemicState
Auto Trait Implementations§
impl Freeze for EpistemicState
impl RefUnwindSafe for EpistemicState
impl Send for EpistemicState
impl Sync for EpistemicState
impl Unpin for EpistemicState
impl UnsafeUnpin for EpistemicState
impl UnwindSafe for EpistemicState
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