pub trait Output: Any {
// Required methods
fn target() -> Target
where Self: Sized;
fn create(
engine: &mut Engine<'_>,
content: &Content,
styles: StyleChain<'_>,
) -> SourceResult<Self>
where Self: Sized;
fn introspector(&self) -> &dyn Introspector;
}Expand description
A compilation output for a particular target.
Has a 1-1 relationship with the variants of Target.
Required Methods§
Sourcefn create(
engine: &mut Engine<'_>,
content: &Content,
styles: StyleChain<'_>,
) -> SourceResult<Self>where
Self: Sized,
fn create(
engine: &mut Engine<'_>,
content: &Content,
styles: StyleChain<'_>,
) -> SourceResult<Self>where
Self: Sized,
Creates the output.
Sourcefn introspector(&self) -> &dyn Introspector
fn introspector(&self) -> &dyn Introspector
Get the output’s introspector.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".