Struct comrak::nodes::NodeCodeBlock [−][src]
pub struct NodeCodeBlock { pub fenced: bool, pub fence_char: u8, pub fence_length: usize, pub info: Vec<u8>, pub literal: Vec<u8>, // some fields omitted }
The metadata and data of a code block (fenced or indented).
Fields
fenced: bool
Whether the code block is fenced.
fence_char: u8
For fenced code blocks, the fence character itself (`
or ~
).
fence_length: usize
For fenced code blocks, the length of the fence.
info: Vec<u8>
For fenced code blocks, the info string after the opening fence, if any.
literal: Vec<u8>
The literal contents of the code block. As the contents are not interpreted as Markdown at all, they are contained within this structure, rather than inserted into a child inline of any kind.
Trait Implementations
impl Default for NodeCodeBlock
[src]
impl Default for NodeCodeBlock
fn default() -> NodeCodeBlock
[src]
fn default() -> NodeCodeBlock
Returns the "default value" for a type. Read more
impl Debug for NodeCodeBlock
[src]
impl Debug for NodeCodeBlock
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for NodeCodeBlock
[src]
impl Clone for NodeCodeBlock
fn clone(&self) -> NodeCodeBlock
[src]
fn clone(&self) -> NodeCodeBlock
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for NodeCodeBlock
impl Send for NodeCodeBlock
impl Sync for NodeCodeBlock
impl Sync for NodeCodeBlock