Trait ComputableSizedVecAccessor

Source
pub trait ComputableSizedVecAccessor<V> {
    // Required method
    fn get_or_compute(&self, index: usize) -> AsmResult<Arc<V>>;
}

Required Methods§

Source

fn get_or_compute(&self, index: usize) -> AsmResult<Arc<V>>

Get the value at the index, compute value if needed. Returns [AsmErr::OutOfRange] if the index is out of range.

Implementors§