pub struct CodeBlock {
pub text: String,
pub byte_offset: usize,
pub raw_range: Range<usize>,
pub info: String,
pub fenced: bool,
}Expand description
One fenced or indented code block.
text is the body excluding fence lines; raw_range covers the
whole block including fences. info is the fence info string
(the language tag); empty for indented blocks.
Fields§
§text: String§byte_offset: usize§raw_range: Range<usize>§info: String§fenced: boolTrait 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