Skip to main content

OpFn

Type Alias OpFn 

Source
pub type OpFn = fn(&mut DynSegment, SourceSpan) -> Result<()>;
Expand description

A function that pushes an operation onto a DynSegment.

Receives the segment and the source span of the expression that triggered this operation. This is a simple function pointer since built-in operations have no state.