Skip to main content

transform_objective

Function transform_objective 

Source
pub fn transform_objective(
    objective: &PreObjective,
    context: &mut TransformerContext,
    fn_context: &FunctionContext<'_>,
) -> Result<Objective, TransformError>
Expand description

Transforms a pre-objective into an objective.

§Arguments

  • objective - The pre-objective to transform
  • context - Transformer context containing variable information
  • fn_context - Function context containing function definitions

§Returns

The transformed objective or a transform error