pub enum BoundForm {
Sem {
s: SymbolId,
p: SymbolId,
o: Value,
keywords: BoundKeywords,
},
Epi {
event_id: SymbolId,
kind: SymbolId,
participants: Vec<SymbolId>,
location: SymbolId,
keywords: BoundKeywords,
},
Pro {
rule_id: SymbolId,
trigger: Value,
action: Value,
keywords: BoundKeywords,
},
Inf {
s: SymbolId,
p: SymbolId,
o: Value,
derived_from: Vec<SymbolId>,
method: SymbolId,
keywords: BoundKeywords,
},
Alias {
a: SymbolId,
b: SymbolId,
},
Rename {
old: SymbolId,
new: SymbolId,
},
Retire {
name: SymbolId,
reason: Option<String>,
},
Correct {
target_episode: SymbolId,
corrected: Box<BoundForm>,
},
Promote {
name: SymbolId,
},
Query {
selector: Option<Value>,
keywords: BoundKeywords,
},
Episode {
action: EpisodeAction,
label: Option<String>,
parent_episode: Option<SymbolId>,
retracts: Vec<SymbolId>,
},
Flag {
action: FlagAction,
memory: SymbolId,
actor: SymbolId,
},
}Expand description
Variants§
Sem
Semantic memory write.
Fields
§
keywords: BoundKeywordsKeyword arguments: src, c, v, optionally projected.
Epi
Episodic memory write.
Fields
§
keywords: BoundKeywordsKeyword arguments: at, obs, src, c.
Pro
Procedural memory write.
Fields
§
keywords: BoundKeywordsKeyword arguments: scp, src, c, optional pre.
Inf
Inferential memory write.
Fields
§
keywords: BoundKeywordsKeyword arguments: c, v, optional projected.
Alias
Alias declaration.
Rename
Rename — old name becomes alias of new (already canonical).
Retire
Retire a symbol.
Correct
Correct a prior Episodic memory.
Fields
Promote
Promote an ephemeral memory to canonical.
Query
Read-path query.
Fields
§
keywords: BoundKeywordsRemaining keyword arguments.
Episode
Explicit Episode-boundary directive (episode-semantics.md
§ 3.2). :close variants carry no metadata; :start variants
may carry any combination of label / parent / retracts.
Fields
§
action: EpisodeActionWhether this form opens or closes an Episode.
Flag
Pin / unpin / authoritative flag write.
Trait Implementations§
impl StructuralPartialEq for BoundForm
Auto Trait Implementations§
impl Freeze for BoundForm
impl RefUnwindSafe for BoundForm
impl Send for BoundForm
impl Sync for BoundForm
impl Unpin for BoundForm
impl UnsafeUnpin for BoundForm
impl UnwindSafe for BoundForm
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