Struct NodeCodeBlock

struct NodeCodeBlock { ... }

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.

fence_offset: usize

For fenced code blocks, the indentation level of the code within the block.

info: String

For fenced code blocks, the info string after the opening fence, if any.

literal: String

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.

Implementations

impl Clone for NodeCodeBlock

fn clone(self: &Self) -> NodeCodeBlock

impl Debug for NodeCodeBlock

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Default for NodeCodeBlock

fn default() -> NodeCodeBlock

impl Eq for NodeCodeBlock

impl Freeze for NodeCodeBlock

impl PartialEq for NodeCodeBlock

fn eq(self: &Self, other: &NodeCodeBlock) -> bool

impl RefUnwindSafe for NodeCodeBlock

impl Send for NodeCodeBlock

impl StructuralPartialEq for NodeCodeBlock

impl Sync for NodeCodeBlock

impl Unpin for NodeCodeBlock

impl UnwindSafe for NodeCodeBlock

impl<T> Any for NodeCodeBlock

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for NodeCodeBlock

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for NodeCodeBlock

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for NodeCodeBlock

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for NodeCodeBlock

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for NodeCodeBlock

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for NodeCodeBlock

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for NodeCodeBlock

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for NodeCodeBlock

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>