Skip to main content

SyncRenderer

Trait SyncRenderer 

Source
pub trait SyncRenderer: Send + Sync {
    type Opts: Send + Sync;

    // Required method
    fn render(
        &self,
        manual: &ReferenceManual,
        opts: &Self::Opts,
    ) -> Result<Vec<OutputFile>>;
}
Expand description

Synchronous compatibility API for callers that cannot wrap Renderer.

Secondary API per ADR 0002. Prefer Renderer for async pipelines.

Required Associated Types§

Source

type Opts: Send + Sync

Renderer-specific options (layout, paths, escaping, etc.).

Required Methods§

Source

fn render( &self, manual: &ReferenceManual, opts: &Self::Opts, ) -> Result<Vec<OutputFile>>

Renders a ReferenceManual into one or more output files.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§