Skip to main content

driver_for

Function driver_for 

Source
fn driver_for(t: &CTerm) -> (Driver, bool)
Expand description

Build the sweep driver from a term, leaving the term intact (kept as CompiledGroup::driver_term). Returns the driver and whether it fully checks the term — false for a case-exact term: the sweep folds its needle (sound: an original-case match always implies the folded match) and the exact comparison runs as a residual.