pub trait ErrorEventHandler {
    unsafe fn split(&mut self) -> (ch_error_event_handler, *mut c_void);
}
Expand description

Definition of the Chimera error event callback function type.

A callback function matching the defined type may be provided by the application calling the @ref ch_scan function. This callback function will be invoked when an error event occurs during matching; this indicates that some matches for a given expression may not be reported.

Required Methods

Split the match event handler to callback and userdata.

Safety

The returned function can only be called with the returned pointer, or a pointer to another C closure.

Implementations on Foreign Types

Implementors