pub enum HtmlOutput {
Document,
NumberedDocument,
Fragment,
}Expand description
The kind of HTML emitted when highlighting to HTML.
Variants§
Document
A complete, self-contained document wrapping a plain
<div class="highlight"><pre><code> block.
NumberedDocument
A complete document with a line-number column (a <table> layout).
Fragment
Only the code markup, without the surrounding document.
Trait Implementations§
Source§impl Clone for HtmlOutput
impl Clone for HtmlOutput
Source§fn clone(&self) -> HtmlOutput
fn clone(&self) -> HtmlOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HtmlOutput
Source§impl Debug for HtmlOutput
impl Debug for HtmlOutput
impl Eq for HtmlOutput
Source§impl PartialEq for HtmlOutput
impl PartialEq for HtmlOutput
impl StructuralPartialEq for HtmlOutput
Source§impl ValueEnum for HtmlOutput
impl ValueEnum for HtmlOutput
Auto Trait Implementations§
impl Freeze for HtmlOutput
impl RefUnwindSafe for HtmlOutput
impl Send for HtmlOutput
impl Sync for HtmlOutput
impl Unpin for HtmlOutput
impl UnsafeUnpin for HtmlOutput
impl UnwindSafe for HtmlOutput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.