pub trait Assembler {
type Configuration;
// Required method
fn assemble_dossier(
dossier: &Dossier,
configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>
where Self: Sized;
// Provided methods
fn assemble_document(
document: &Document,
_configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>
where Self: Sized { ... }
fn assemble_document_standalone(
document: &Document,
_page_title: &String,
_toc: Option<&TableOfContents>,
_bibliography: Option<&Bibliography>,
configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>
where Self: Sized { ... }
}
Required Associated Types§
type Configuration
Required Methods§
sourcefn assemble_dossier(
dossier: &Dossier,
configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
fn assemble_dossier(
dossier: &Dossier,
configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
Assemble dossier
Provided Methods§
sourcefn assemble_document(
document: &Document,
_configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
fn assemble_document(
document: &Document,
_configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
Assemble document
sourcefn assemble_document_standalone(
document: &Document,
_page_title: &String,
_toc: Option<&TableOfContents>,
_bibliography: Option<&Bibliography>,
configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
fn assemble_document_standalone(
document: &Document,
_page_title: &String,
_toc: Option<&TableOfContents>,
_bibliography: Option<&Bibliography>,
configuration: &Self::Configuration,
) -> Result<Artifact, AssemblerError>where
Self: Sized,
Assemble a standalone document, so page_title
, styles_references
, toc
and bibliography
are needed