Skip to main content

render_profile

Function render_profile 

Source
pub fn render_profile(
    doc_type: Option<DocType>,
    format: Option<Format>,
) -> RenderProfile
Expand description

Resolve a (DocType, Option<Format>) pair to a RenderProfile.

Pure and total: every DocType maps to exactly one profile, and every Format reaches a profile (drift-tested). None for the doc type resolves to RenderProfile::Document. Papers default to Format::Article and reports to Format::Mla when format is absent.