Skip to main content

binary_field

Function binary_field 

Source
fn binary_field(
    matching: &BinaryMatching,
    grid: &EvalGrid,
    lhs: &Operand<'_>,
    rhs: &Operand<'_>,
    errors: &mut Vec<(usize, u8, String)>,
    evidence: Option<FieldEvidence<'_>>,
    annotations: Option<&PromqlAnnotationCollector>,
    budget: Option<&mut Budget<'_>>,
) -> Result<Results>
Expand description

Matches one field of each side, collecting the first failure of each kind as (point, rank, message).

The field’s tables and the match set it builds are its own workspace: they replace what the field before held and are gone when it returns, which is why the caller admits that release after the call. The messages it appended and the rows it filed are what stays live.