pub enum GuardedRememberOutcome {
Stored {
outcome: RememberOutcome,
},
Blocked {
similar: Vec<Similar>,
},
}Expand description
Result of Memory::remember_guarded.
The two variants are intentionally disjoint: a blocked call has no fact id
because it did not allocate one, mutate an index, or append a journal
record. A caller that decides the candidates are compatible can make that
choice explicit by following with ordinary Memory::remember.
Variants§
Stored
No candidate crossed the configured similarity thresholds; the fact was stored normally.
Fields
§
outcome: RememberOutcomeThe committed fact.
Blocked
At least one live same-entity fact crossed a similarity threshold; no mutation was made.
Trait Implementations§
Source§impl Clone for GuardedRememberOutcome
impl Clone for GuardedRememberOutcome
Source§fn clone(&self) -> GuardedRememberOutcome
fn clone(&self) -> GuardedRememberOutcome
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 GuardedRememberOutcome
impl Debug for GuardedRememberOutcome
Source§impl PartialEq for GuardedRememberOutcome
impl PartialEq for GuardedRememberOutcome
impl StructuralPartialEq for GuardedRememberOutcome
Auto Trait Implementations§
impl Freeze for GuardedRememberOutcome
impl RefUnwindSafe for GuardedRememberOutcome
impl Send for GuardedRememberOutcome
impl Sync for GuardedRememberOutcome
impl Unpin for GuardedRememberOutcome
impl UnsafeUnpin for GuardedRememberOutcome
impl UnwindSafe for GuardedRememberOutcome
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