Struct mupdf_sys::fz_shaper_data_t[][src]

#[repr(C)]pub struct fz_shaper_data_t {
    pub shaper_handle: *mut c_void,
    pub destroy: Option<unsafe extern "C" fn(ctx: *mut fz_context, arg1: *mut c_void)>,
}

In order to shape a given font, we need to declare it to a shaper library (harfbuzz, by default, but others are possible). To avoid redeclaring it every time we need to shape, we hold a shaper handle and the destructor for it within the font itself. The handle is initialised by the caller when first required and the destructor is called when the fz_font is destroyed.

Fields

shaper_handle: *mut c_voiddestroy: Option<unsafe extern "C" fn(ctx: *mut fz_context, arg1: *mut c_void)>

Trait Implementations

impl Clone for fz_shaper_data_t[src]

impl Copy for fz_shaper_data_t[src]

impl Debug for fz_shaper_data_t[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.