Skip to main content

DocumentExt

Trait DocumentExt 

Source
pub trait DocumentExt {
    // Required methods
    fn bundle(
        &self,
        setup_options: &DocumentSetupOptions,
    ) -> Result<Box<dyn Bundle>>;
    fn setup_session(
        &self,
        output_profile: &str,
        setup_options: &DocumentSetupOptions,
        status: &mut dyn StatusBackend,
    ) -> Result<ProcessingSessionBuilder>;
}
Expand description

Extension methods for Document.

Required Methods§

Source

fn bundle( &self, setup_options: &DocumentSetupOptions, ) -> Result<Box<dyn Bundle>>

Get the bundle used by this document.

This parses Document::bundle_loc and turns it into the appropriate bundle backend.

Source

fn setup_session( &self, output_profile: &str, setup_options: &DocumentSetupOptions, status: &mut dyn StatusBackend, ) -> Result<ProcessingSessionBuilder>

Set up a ProcessingSessionBuilder for one of the outputs.

The output_profile argument gives the name of the document’s output profile to use.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DocumentExt for Document

Source§

fn bundle( &self, setup_options: &DocumentSetupOptions, ) -> Result<Box<dyn Bundle>>

Source§

fn setup_session( &self, output_profile: &str, setup_options: &DocumentSetupOptions, status: &mut dyn StatusBackend, ) -> Result<ProcessingSessionBuilder>

Implementors§