Skip to main content

GraphProcessor

Trait GraphProcessor 

Source
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§

Source

fn load(&self, index: usize) -> Option<T>

Source

fn neighbor_indices(&self, index: usize, data: Arc<T>) -> Vec<usize>

Source

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".

Implementors§