Skip to main content

SubstrateBackend

Trait SubstrateBackend 

Source
pub trait SubstrateBackend: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn similarity_search(&self, query: &[f32], k: usize) -> Vec<SearchResult>;
    fn adapt(&mut self, pattern: &[f32], reward: f32) -> AdaptResult;
    fn coherence(&self) -> f32;
    fn reset(&mut self);
}
Expand description

Unified substrate backend trait — all compute modalities implement this.

Required Methods§

Source

fn name(&self) -> &'static str

Backend identifier

Similarity search in the backend’s representational space.

Source

fn adapt(&mut self, pattern: &[f32], reward: f32) -> AdaptResult

One-shot pattern adaptation (analogous to manifold deformation).

Source

fn coherence(&self) -> f32

Check backend health / coherence level (0.0–1.0).

Source

fn reset(&mut self)

Reset/clear backend state.

Implementors§