Skip to main content

binary_number_op

Function binary_number_op 

Source
pub unsafe fn binary_number_op(
    pc: *mut XmlXPathParserContext,
    op: impl Fn(f64, f64) -> f64,
)
Expand description

Pop two number operands from the stack and apply op.

UPSTREAM-PARITY: the first popped value is the RIGHT operand (xmlXPathAddValues pops arg (rhs) then arg (lhs)).

ยงSAFETY

  • pc must be a valid parser context.