Skip to main content

fz_document_recognize_fn

Type Alias fz_document_recognize_fn 

Source
pub type fz_document_recognize_fn = Option<unsafe extern "C" fn(ctx: *mut fz_context, handler: *const fz_document_handler, magic: *const c_char) -> c_int>;
Expand description

Recognize a document type from
a magic string.

handler: the handler in use.

magic: string to recognise - typically a filename or mime
type.

Returns a number between 0 (not recognized) and 100
(fully recognized) based on how certain the recognizer
is that this is of the required type.

Aliased Type§

pub enum fz_document_recognize_fn {
    None,
    Some(unsafe extern "C" fn(*mut fz_context, *const fz_document_handler, *const i8) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut fz_context, *const fz_document_handler, *const i8) -> i32)

Some value of type T.