pub enum OutputFormat {
Markdown(MarkdownFlavor),
Html,
Json,
Latex,
}
Expand description
This indicates the output format to use when writing a document.
Variants§
Markdown(MarkdownFlavor)
One of the supported flavors of Markdown, see markdown::MarkdownFlavor
.
Html
Generic HTML, supports math via MathJax and code syntax via hightlight.js.
Json
A direct representation of the model in JSON for external tool integration.
Latex
Pretty generic LaTeX support, includes a number of packages for support of listings, block quotes, images, etc.
Trait Implementations§
Source§impl Clone for OutputFormat
impl Clone for OutputFormat
Source§fn clone(&self) -> OutputFormat
fn clone(&self) -> OutputFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OutputFormat
impl Debug for OutputFormat
Source§impl Default for OutputFormat
impl Default for OutputFormat
Source§impl Display for OutputFormat
impl Display for OutputFormat
Source§impl FromStr for OutputFormat
impl FromStr for OutputFormat
Source§impl Into<OutputFormat> for MarkdownFlavor
impl Into<OutputFormat> for MarkdownFlavor
Source§fn into(self) -> OutputFormat
fn into(self) -> OutputFormat
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for OutputFormat
impl PartialEq for OutputFormat
impl StructuralPartialEq for OutputFormat
Auto Trait Implementations§
impl Freeze for OutputFormat
impl RefUnwindSafe for OutputFormat
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnwindSafe for OutputFormat
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