pub struct EdgeEvidence { /* private fields */ }Expand description
Everything one edge persists about why it is believed: the Beta counts that move confidence, and the coherence counter that must not.
A self-authored corroboration is weighted into α like any other
observation — at the (normally tiny) self weight — and tallied in
self_reinforcements. Keeping the tally separate is what lets “believed
because three independent sources said so” stay distinguishable from
“believed because the agent has said it thirty times”.
Implementations§
Source§impl EdgeEvidence
impl EdgeEvidence
Sourcepub fn new(evidence: Evidence, self_reinforcements: i64) -> Self
pub fn new(evidence: Evidence, self_reinforcements: i64) -> Self
Evidence state as read from an edge. A negative stored tally (only reachable by hand-editing the store) is treated as zero.
Sourcepub fn corroborate(
&mut self,
provenance: Provenance,
weights: &ProvenanceWeights,
)
pub fn corroborate( &mut self, provenance: Provenance, weights: &ProvenanceWeights, )
Record corroboration authored by provenance.
Sourcepub fn contradict(
&mut self,
provenance: Provenance,
weights: &ProvenanceWeights,
)
pub fn contradict( &mut self, provenance: Provenance, weights: &ProvenanceWeights, )
Record contradiction authored by provenance.
Contradicting yourself is not coherence: the tally does not move.
Sourcepub fn self_reinforcements(self) -> i64
pub fn self_reinforcements(self) -> i64
How many corroborations the agent produced itself.
Trait Implementations§
Source§impl Clone for EdgeEvidence
impl Clone for EdgeEvidence
Source§fn clone(&self) -> EdgeEvidence
fn clone(&self) -> EdgeEvidence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EdgeEvidence
Source§impl Debug for EdgeEvidence
impl Debug for EdgeEvidence
Source§impl PartialEq for EdgeEvidence
impl PartialEq for EdgeEvidence
impl StructuralPartialEq for EdgeEvidence
Auto Trait Implementations§
impl Freeze for EdgeEvidence
impl RefUnwindSafe for EdgeEvidence
impl Send for EdgeEvidence
impl Sync for EdgeEvidence
impl Unpin for EdgeEvidence
impl UnsafeUnpin for EdgeEvidence
impl UnwindSafe for EdgeEvidence
Blanket Implementations§
impl<T> AsyncFriendly 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request