fz_document_drop_fn

Type Alias fz_document_drop_fn 

Source
pub type fz_document_drop_fn = Option<unsafe extern "C" fn(ctx: *mut fz_context, doc: *mut fz_document)>;
Expand description

Type for a function to be called when
the reference count for the fz_document drops to 0. The
implementation should release any resources held by the
document. The actual document pointer will be freed by the
caller.

Aliased Type§

pub enum fz_document_drop_fn {
    None,
    Some(unsafe extern "C" fn(*mut fz_context, *mut fz_document)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut fz_context, *mut fz_document))

Some value of type T.