pub struct MarkdownCodeFence {
pub language: Option<String>,
pub content: String,
pub start_line: usize,
pub end_line: usize,
}Expand description
A fenced code block extracted from Markdown.
Fields§
§language: Option<String>The optional info-string language token.
content: StringThe raw fenced content without the opening or closing fence lines.
start_line: usizeThe 1-based line where the opening fence appears.
end_line: usizeThe 1-based line where the closing fence appears, or the last line when unclosed.
Trait Implementations§
Source§impl Clone for MarkdownCodeFence
impl Clone for MarkdownCodeFence
Source§fn clone(&self) -> MarkdownCodeFence
fn clone(&self) -> MarkdownCodeFence
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 moreSource§impl Debug for MarkdownCodeFence
impl Debug for MarkdownCodeFence
Source§impl PartialEq for MarkdownCodeFence
impl PartialEq for MarkdownCodeFence
Source§fn eq(&self, other: &MarkdownCodeFence) -> bool
fn eq(&self, other: &MarkdownCodeFence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MarkdownCodeFence
impl StructuralPartialEq for MarkdownCodeFence
Auto Trait Implementations§
impl Freeze for MarkdownCodeFence
impl RefUnwindSafe for MarkdownCodeFence
impl Send for MarkdownCodeFence
impl Sync for MarkdownCodeFence
impl Unpin for MarkdownCodeFence
impl UnsafeUnpin for MarkdownCodeFence
impl UnwindSafe for MarkdownCodeFence
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