Struct mupdf_sys::fz_store_type[][src]

#[repr(C)]pub struct fz_store_type {
    pub name: *const c_char,
    pub make_hash_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, hash: *mut fz_store_hash, key: *mut c_void) -> c_int>,
    pub keep_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, key: *mut c_void) -> *mut c_void>,
    pub drop_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, key: *mut c_void)>,
    pub cmp_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, a: *mut c_void, b: *mut c_void) -> c_int>,
    pub format_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, buf: *mut c_char, size: usize, key: *mut c_void)>,
    pub needs_reap: Option<unsafe extern "C" fn(ctx: *mut fz_context, key: *mut c_void) -> c_int>,
}

Every type of object to be placed into the store defines an fz_store_type. This contains the pointers to functions to make hashes, manipulate keys, and check for needing reaping.

Fields

name: *const c_charmake_hash_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, hash: *mut fz_store_hash, key: *mut c_void) -> c_int>keep_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, key: *mut c_void) -> *mut c_void>drop_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, key: *mut c_void)>cmp_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, a: *mut c_void, b: *mut c_void) -> c_int>format_key: Option<unsafe extern "C" fn(ctx: *mut fz_context, buf: *mut c_char, size: usize, key: *mut c_void)>needs_reap: Option<unsafe extern "C" fn(ctx: *mut fz_context, key: *mut c_void) -> c_int>

Trait Implementations

impl Clone for fz_store_type[src]

impl Copy for fz_store_type[src]

impl Debug for fz_store_type[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.