pub struct CollectiveMemory {
pub knowledge_base: HashMap<String, SharedKnowledge>,
pub experiences: Vec<CollectiveExperience>,
pub wisdom: Vec<CollectiveWisdom>,
pub consolidation_rules: Vec<ConsolidationRule>,
}
Expand description
Collective memory system
Fieldsยง
ยงknowledge_base: HashMap<String, SharedKnowledge>
Shared knowledge base
experiences: Vec<CollectiveExperience>
Collective experiences
wisdom: Vec<CollectiveWisdom>
Wisdom accumulated over time
consolidation_rules: Vec<ConsolidationRule>
Memory consolidation rules
Implementationsยง
Trait Implementationsยง
Sourceยงimpl Clone for CollectiveMemory
impl Clone for CollectiveMemory
Sourceยงfn clone(&self) -> CollectiveMemory
fn clone(&self) -> CollectiveMemory
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 CollectiveMemory
impl Debug for CollectiveMemory
Sourceยงimpl<'de> Deserialize<'de> for CollectiveMemory
impl<'de> Deserialize<'de> for CollectiveMemory
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl Freeze for CollectiveMemory
impl RefUnwindSafe for CollectiveMemory
impl Send for CollectiveMemory
impl Sync for CollectiveMemory
impl Unpin for CollectiveMemory
impl UnwindSafe for CollectiveMemory
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