Struct mupdf_sys::fz_document

source ·
#[repr(C)]
pub struct fz_document {
Show 22 fields pub refs: c_int, pub drop_document: fz_document_drop_fn, pub needs_password: fz_document_needs_password_fn, pub authenticate_password: fz_document_authenticate_password_fn, pub has_permission: fz_document_has_permission_fn, pub load_outline: fz_document_load_outline_fn, pub outline_iterator: fz_document_outline_iterator_fn, pub layout: fz_document_layout_fn, pub make_bookmark: fz_document_make_bookmark_fn, pub lookup_bookmark: fz_document_lookup_bookmark_fn, pub resolve_link_dest: fz_document_resolve_link_dest_fn, pub format_link_uri: fz_document_format_link_uri_fn, pub count_chapters: fz_document_count_chapters_fn, pub count_pages: fz_document_count_pages_fn, pub load_page: fz_document_load_page_fn, pub lookup_metadata: fz_document_lookup_metadata_fn, pub set_metadata: fz_document_set_metadata_fn, pub get_output_intent: fz_document_output_intent_fn, pub output_accelerator: fz_document_output_accelerator_fn, pub did_layout: c_int, pub is_reflowable: c_int, pub open: *mut fz_page,
}
Expand description

Structure definition is public so other classes can derive from it. Callers should not access the members directly, though implementations will need initialize functions directly.

Fields§

§refs: c_int§drop_document: fz_document_drop_fn§needs_password: fz_document_needs_password_fn§authenticate_password: fz_document_authenticate_password_fn§has_permission: fz_document_has_permission_fn§load_outline: fz_document_load_outline_fn§outline_iterator: fz_document_outline_iterator_fn§layout: fz_document_layout_fn§make_bookmark: fz_document_make_bookmark_fn§lookup_bookmark: fz_document_lookup_bookmark_fn§resolve_link_dest: fz_document_resolve_link_dest_fn§format_link_uri: fz_document_format_link_uri_fn§count_chapters: fz_document_count_chapters_fn§count_pages: fz_document_count_pages_fn§load_page: fz_document_load_page_fn§lookup_metadata: fz_document_lookup_metadata_fn§set_metadata: fz_document_set_metadata_fn§get_output_intent: fz_document_output_intent_fn§output_accelerator: fz_document_output_accelerator_fn§did_layout: c_int§is_reflowable: c_int§open: *mut fz_page

Trait Implementations§

source§

impl Clone for fz_document

source§

fn clone(&self) -> fz_document

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for fz_document

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for fz_document

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.