#[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)>,
}Expand description
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_void§destroy: Option<unsafe extern "C" fn(ctx: *mut fz_context, arg1: *mut c_void)>Trait Implementations§
Source§impl Clone for fz_shaper_data_t
impl Clone for fz_shaper_data_t
Source§fn clone(&self) -> fz_shaper_data_t
fn clone(&self) -> fz_shaper_data_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for fz_shaper_data_t
impl Debug for fz_shaper_data_t
impl Copy for fz_shaper_data_t
Auto Trait Implementations§
impl Freeze for fz_shaper_data_t
impl RefUnwindSafe for fz_shaper_data_t
impl !Send for fz_shaper_data_t
impl !Sync for fz_shaper_data_t
impl Unpin for fz_shaper_data_t
impl UnwindSafe for fz_shaper_data_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more