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§
impl Freeze for PandocOutput
impl RefUnwindSafe for PandocOutput
impl Send for PandocOutput
impl Sync for PandocOutput
impl Unpin for PandocOutput
impl UnwindSafe for PandocOutput
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more