pub enum RenderProfile {
Document,
Web,
Presentation,
Paper(Format),
Report(Format),
}Expand description
A resolved rendering profile: the engine-level decision of what kind of
artifact a document produces, derived once from (DocType, Option<Format>)
so renderers consult a single small enum instead of re-deriving intent.
This is the Chunk 1 foundation other chunks build on: Chunk 5 keys the
slides path off RenderProfile::Presentation, and Chunk 6 keys the
paper/report templates off RenderProfile::Paper/RenderProfile::Report
and the carried Format.
Variants§
Document
Standard single-document rendering (doc, guide, plan, report-less, …).
Web
Multi-page web rendering (::site/::page); from web/website.
Presentation
Presentation/slides rendering; from deck/slides/presentation.
Paper(Format)
Scientific paper with the carried citation/template Format.
Report(Format)
Academic report with the carried citation/template Format.
Trait Implementations§
Source§impl Clone for RenderProfile
impl Clone for RenderProfile
Source§fn clone(&self) -> RenderProfile
fn clone(&self) -> RenderProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RenderProfile
Source§impl Debug for RenderProfile
impl Debug for RenderProfile
impl Eq for RenderProfile
Source§impl PartialEq for RenderProfile
impl PartialEq for RenderProfile
impl StructuralPartialEq for RenderProfile
Auto Trait Implementations§
impl Freeze for RenderProfile
impl RefUnwindSafe for RenderProfile
impl Send for RenderProfile
impl Sync for RenderProfile
impl Unpin for RenderProfile
impl UnsafeUnpin for RenderProfile
impl UnwindSafe for RenderProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.