pub enum CodeBlockKind {
Fenced {
marker: FenceMarker,
length: usize,
},
Indented,
}Expand description
Whether a CodeBlock is fenced or indented.
Variants§
Fenced
A fenced code block; records the fence char and its run length.
Fields
§
marker: FenceMarkerWhich character formed the fence (backtick or tilde).
Indented
A 4-space-indented code block.
Trait Implementations§
Source§impl Clone for CodeBlockKind
impl Clone for CodeBlockKind
Source§fn clone(&self) -> CodeBlockKind
fn clone(&self) -> CodeBlockKind
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 CodeBlockKind
Source§impl Debug for CodeBlockKind
impl Debug for CodeBlockKind
impl Eq for CodeBlockKind
Source§impl PartialEq for CodeBlockKind
impl PartialEq for CodeBlockKind
Source§fn eq(&self, other: &CodeBlockKind) -> bool
fn eq(&self, other: &CodeBlockKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodeBlockKind
Auto Trait Implementations§
impl Freeze for CodeBlockKind
impl RefUnwindSafe for CodeBlockKind
impl Send for CodeBlockKind
impl Sync for CodeBlockKind
impl Unpin for CodeBlockKind
impl UnsafeUnpin for CodeBlockKind
impl UnwindSafe for CodeBlockKind
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