Skip to main content

Output

Trait Output 

Source
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§

Source

fn target() -> Target
where Self: Sized,

The target associated with the output.

Source

fn create( engine: &mut Engine<'_>, content: &Content, styles: StyleChain<'_>, ) -> SourceResult<Self>
where Self: Sized,

Creates the output.

Source

fn introspector(&self) -> &dyn Introspector

Get the output’s introspector.

Trait Implementations§

Source§

impl AsOutput for &dyn Output

Source§

fn as_output(&self) -> &dyn Output

Turns the reference into the trait object.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§