pub enum SimpleBlockStyle {
Paragraph,
Literal,
Listing,
Source,
}Expand description
The style of a simple block.
Variants§
Paragraph
A paragraph block with normal substitutions.
Literal
A literal block with no substitutions.
Listing
Blocks and paragraphs assigned the listing style display their rendered
content exactly as you see it in the source. Listing content is
converted to preformatted text (i.e., <pre>). The content is presented
in a fixed-width font and endlines are preserved. Only special
characters and callouts are replaced when the document is converted.
Source
A source block is a specialization of a listing block. Developers are accustomed to seeing source code colorized to emphasize the code’s structure (i.e., keywords, types, delimiters, etc.).
Trait Implementations§
Source§impl Clone for SimpleBlockStyle
impl Clone for SimpleBlockStyle
Source§fn clone(&self) -> SimpleBlockStyle
fn clone(&self) -> SimpleBlockStyle
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 SimpleBlockStyle
impl Debug for SimpleBlockStyle
Source§impl PartialEq for SimpleBlockStyle
impl PartialEq for SimpleBlockStyle
impl Copy for SimpleBlockStyle
impl Eq for SimpleBlockStyle
impl StructuralPartialEq for SimpleBlockStyle
Auto Trait Implementations§
impl Freeze for SimpleBlockStyle
impl RefUnwindSafe for SimpleBlockStyle
impl Send for SimpleBlockStyle
impl Sync for SimpleBlockStyle
impl Unpin for SimpleBlockStyle
impl UnwindSafe for SimpleBlockStyle
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