pub struct CodeBlock {
pub lang: Option<String>,
pub text: String,
pub byte_range: Range<usize>,
pub line: usize,
}Expand description
A fenced or indented code block.
Fields§
§lang: Option<String>Info-string language tag, if any.
text: StringCode block contents.
byte_range: Range<usize>Byte span in the original input.
line: usize1-based line number.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeBlock
impl RefUnwindSafe for CodeBlock
impl Send for CodeBlock
impl Sync for CodeBlock
impl Unpin for CodeBlock
impl UnsafeUnpin for CodeBlock
impl UnwindSafe for CodeBlock
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