pub enum MemoryKind {
Semantic(Semantic),
Episodic(Episodic),
Procedural(Procedural),
Inferential(Inferential),
}Expand description
A canonical memory kind.
Four variants, frozen per memory-type-taxonomy.md § 5. The enum is
not #[non_exhaustive]; adding a fifth type is a breaking
change under semver (PRINCIPLES.md § 10).
Variants§
Semantic(Semantic)
General facts about the world.
Episodic(Episodic)
Events at a point in time.
Procedural(Procedural)
Rules that direct future behavior.
Inferential(Inferential)
Facts derived from other memories.
Implementations§
Source§impl MemoryKind
impl MemoryKind
Sourcepub const fn tag(&self) -> MemoryKindTag
pub const fn tag(&self) -> MemoryKindTag
Compact tag for this memory kind.
Trait Implementations§
Source§impl Clone for MemoryKind
impl Clone for MemoryKind
Source§fn clone(&self) -> MemoryKind
fn clone(&self) -> MemoryKind
Returns a duplicate of the value. Read more
1.0.0 · 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 MemoryKind
impl Debug for MemoryKind
Source§impl PartialEq for MemoryKind
impl PartialEq for MemoryKind
impl StructuralPartialEq for MemoryKind
Auto Trait Implementations§
impl Freeze for MemoryKind
impl RefUnwindSafe for MemoryKind
impl Send for MemoryKind
impl Sync for MemoryKind
impl Unpin for MemoryKind
impl UnsafeUnpin for MemoryKind
impl UnwindSafe for MemoryKind
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