Type Definition crfsuite_sys::crfsuite_logging_callback [] [src]

type crfsuite_logging_callback = Option<unsafe extern "C" fn(user: *mut c_void, format: *const c_char, args: *mut __va_list_tag) -> c_int>;

Type of callback function for logging.

  • user Pointer to the user-defined data.
  • format Format string (compatible with prinf()).
  • args Optional arguments for the format string.

Returns int \c 0 to continue; non-zero to cancel the training.