pub struct CodeBlock {
pub meta: NodeMeta,
pub kind: CodeBlockKind,
pub info: Option<String>,
pub value: String,
}Expand description
A code block. Source: ```lang … ``` (fenced) or 4-space-indented lines.
Fields§
§meta: NodeMetaNode metadata (source span).
kind: CodeBlockKindWhether the block is fenced (and with what fence) or indented.
info: Option<String>The info string after a fence (e.g. the rust in ```rust).
value: StringThe literal code contents.
Trait Implementations§
impl Eq for CodeBlock
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 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