Skip to main content

compile

Function compile 

Source
pub fn compile(path: &str, source: &str) -> Result<OutputValidator>
Expand description

Compile an output validator and check its shape.

validate(content) must exist and take exactly one parameter. A script that defines nothing, or defines it with the wrong arity, is refused here rather than silently never running.