pub struct CodeBlock {
pub kind: CodeBlockKind,
pub literal: String,
}
Expand description
Fenced or indented code block.
Fields§
§kind: CodeBlockKind
Distinguishes indented vs fenced code and stores the info string.
literal: String
Literal text inside the code block without final newline trimming.
Trait Implementations§
impl StructuralPartialEq for CodeBlock
Auto Trait Implementations§
impl Freeze for CodeBlock
impl RefUnwindSafe for CodeBlock
impl Send for CodeBlock
impl Sync for CodeBlock
impl Unpin 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