pub enum PandocOutput {
    ToFile(PathBuf),
    ToBuffer(String),
    ToBufferRaw(Vec<u8>),
}
Expand description

The output from Pandoc: the file written to, or a buffer with its output.

Variants

ToFile(PathBuf)

The results of the pandoc operation are stored in Path

ToBuffer(String)

The results of the pandoc operation are returned as a String (constructed from the UTF-8 stream returned by pandoc). This will be the case for text-based formats.

ToBufferRaw(Vec<u8>)

The results of the pandoc operation are returned as a Vec<u8>. This will be the case for binary formats such as PDF.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.