pub struct Handle<'a> {
pub info: Info,
pub pages: Vec<Page<'a>>,
pub page_labels: NumberTree<PageLabel>,
pub outline: Outline,
pub res: Res<'a>,
}Expand description
Entrypoint to the high-level API
Create a new handle to start creating a PDF document
Fields§
§info: InfoThe info/metadata
pages: Vec<Page<'a>>The pages
page_labels: NumberTree<PageLabel>The settings for page numbering for a PDF viewer
outline: OutlineThe outline for a PDF viewer
res: Res<'a>The global resource struct
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Handle<'a>
impl<'a> RefUnwindSafe for Handle<'a>
impl<'a> Send for Handle<'a>
impl<'a> Sync for Handle<'a>
impl<'a> Unpin for Handle<'a>
impl<'a> UnwindSafe for Handle<'a>
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