pub type Detector<'d> = dyn Fn(&Path, &SourceRange) -> Result<Detection, String> + 'd;
See Renderer::detect.
Renderer::detect