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§
Sourcefn bundle(
&self,
setup_options: &DocumentSetupOptions,
) -> Result<Box<dyn Bundle>>
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.
Sourcefn setup_session(
&self,
output_profile: &str,
setup_options: &DocumentSetupOptions,
status: &mut dyn StatusBackend,
) -> Result<ProcessingSessionBuilder>
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".