Skip to main content

apply_chain

Function apply_chain 

Source
pub fn apply_chain(
    items: &mut Vec<(usize, f32)>,
    chunks: &[CodeChunk],
    layers: &[Box<dyn RankingLayer>],
)
Expand description

Apply a sequence of ranking layers in order.

Each layer’s effect is visible to subsequent layers. Returns the final items after all layers have run.