pub trait GraphProcessor<T>: Sync + Send {
// Required methods
fn load(&self, index: usize) -> Option<T>;
fn neighbor_indices(&self, index: usize, data: Arc<T>) -> Vec<usize>;
fn process(&self, data: &Arc<T>, neighbors: &HashMap<usize, Arc<T>>);
}Required Methods§
fn load(&self, index: usize) -> Option<T>
fn neighbor_indices(&self, index: usize, data: Arc<T>) -> Vec<usize>
fn process(&self, data: &Arc<T>, neighbors: &HashMap<usize, Arc<T>>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".