set_hook

Function set_hook 

Source
pub fn set_hook(
    hook: Box<dyn Fn(&(dyn Diagnostic + 'static)) -> Box<dyn ReportHandler> + Send + Sync>,
) -> Result<(), InstallError>
Expand description

Set the error hook.