async fn search_layer<O: Send, S: VectorStore>(
vector_store: &S,
ctx: &mut S::Ctx,
graph: &impl HnswGraph,
measure: &impl MeasureDistance,
on_nearest_fn: impl OnNearestItem<O>,
entrypoints: BoundedNearest<(usize, O)>,
level_index: usize,
ef: usize,
stats: &mut HnswStats,
visited: &mut VecSet,
) -> Result<BoundedNearest<(usize, O)>, S::Err>