pub struct SmartTreeMem8 { /* private fields */ }Expand description
MEM8 integration for Smart Tree
Implementations§
Source§impl SmartTreeMem8
Extension for MEM8 to create developer-specific wave patterns
impl SmartTreeMem8
Extension for MEM8 to create developer-specific wave patterns
Sourcepub fn import_developer_personas(
&mut self,
repo_path: impl AsRef<Path>,
) -> Result<()>
pub fn import_developer_personas( &mut self, repo_path: impl AsRef<Path>, ) -> Result<()>
Import developer personas as unique wave signatures
Sourcepub fn query_developer_memories(
&self,
_developer_name: &str,
) -> Vec<(MemoryWave, String)>
pub fn query_developer_memories( &self, _developer_name: &str, ) -> Vec<(MemoryWave, String)>
Query memories specific to a developer
Source§impl SmartTreeMem8
Extension trait to integrate Git temporal data with MEM8
impl SmartTreeMem8
Extension trait to integrate Git temporal data with MEM8
Source§impl SmartTreeMem8
impl SmartTreeMem8
Sourcepub fn store_directory_memory(
&mut self,
path: &Path,
metadata: DirectoryMetadata,
) -> Result<()>
pub fn store_directory_memory( &mut self, path: &Path, metadata: DirectoryMetadata, ) -> Result<()>
Store a directory entry as a wave memory
Sourcepub fn simple_hash(&self, s: &str) -> u64
pub fn simple_hash(&self, s: &str) -> u64
Simple hash function for path distribution
Sourcepub fn query_path_memories(&self, pattern: &str) -> Vec<PathMemory>
pub fn query_path_memories(&self, pattern: &str) -> Vec<PathMemory>
Query memories about a specific path pattern
Sourcepub fn register_directory_patterns(&mut self)
pub fn register_directory_patterns(&mut self)
Register reactive patterns for directory events
Sourcepub fn process_directory_event(
&self,
event: DirectoryEvent,
) -> Option<ReactiveResponse>
pub fn process_directory_event( &self, event: DirectoryEvent, ) -> Option<ReactiveResponse>
Process directory scan event through reactive system
Sourcepub fn update_consciousness(&self)
pub fn update_consciousness(&self)
Update consciousness state
Sourcepub fn export_memories<W: Write>(&self, writer: W) -> Result<()>
pub fn export_memories<W: Write>(&self, writer: W) -> Result<()>
Export memories to .m8 format
Sourcepub fn active_memory_count(&self) -> usize
pub fn active_memory_count(&self) -> usize
Get count of active memories
Sourcepub fn store_wave_at_coordinates(
&mut self,
x: u8,
y: u8,
z: u16,
wave: MemoryWave,
) -> Result<()>
pub fn store_wave_at_coordinates( &mut self, x: u8, y: u8, z: u16, wave: MemoryWave, ) -> Result<()>
Store wave at specific coordinates (public helper method)
Sourcepub fn string_to_coordinates(&self, s: &str) -> (u8, u8)
pub fn string_to_coordinates(&self, s: &str) -> (u8, u8)
Helper to convert string to coordinates
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SmartTreeMem8
impl RefUnwindSafe for SmartTreeMem8
impl Send for SmartTreeMem8
impl Sync for SmartTreeMem8
impl Unpin for SmartTreeMem8
impl UnsafeUnpin for SmartTreeMem8
impl UnwindSafe for SmartTreeMem8
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
Converts
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>
Converts
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 more