EstimateModifier

Trait EstimateModifier 

Source
pub trait EstimateModifier<State, Goal, Cost> {
    type EstimateModifierError;

    // Required method
    fn modify_remaining_cost_estimate(
        &self,
        from_state: &State,
        to_goal: &Goal,
        original_estimate: Cost,
    ) -> Result<Option<Cost>, Self::EstimateModifierError>;
}

Required Associated Types§

Source

type EstimateModifierError

What kind of error can happen if a bad input is provided

Required Methods§

Source

fn modify_remaining_cost_estimate( &self, from_state: &State, to_goal: &Goal, original_estimate: Cost, ) -> Result<Option<Cost>, Self::EstimateModifierError>

Implementors§

Source§

impl<State, Goal, Cost> EstimateModifier<State, Goal, Cost> for ScaleWeight<Cost>
where Cost: Mul<Cost, Output = Cost> + Clone,