pub trait ResultSelector {
    // Required method
    fn select_insertion(
        &self,
        ctx: &InsertionContext,
        left: InsertionResult,
        right: InsertionResult
    ) -> InsertionResult;

    // Provided method
    fn select_cost<'a>(
        &self,
        left: &'a InsertionCost,
        right: &'a InsertionCost
    ) -> Either<&'a InsertionCost, &'a InsertionCost>  { ... }
}
Expand description

Insertion result selector.

Required Methods§

source

fn select_insertion( &self, ctx: &InsertionContext, left: InsertionResult, right: InsertionResult ) -> InsertionResult

Selects one insertion result from two to promote as best.

Provided Methods§

source

fn select_cost<'a>( &self, left: &'a InsertionCost, right: &'a InsertionCost ) -> Either<&'a InsertionCost, &'a InsertionCost>

Selects one insertion result from two to promote as best.

Implementors§