pub struct NodeCodeBlock {
pub fenced: bool,
pub fence_char: u8,
pub fence_length: usize,
pub fence_offset: usize,
pub info: String,
pub literal: String,
}Expand description
The metadata and data of a code block (fenced or indented).
Fields§
§fenced: boolWhether the code block is fenced.
fence_char: u8For fenced code blocks, the fence character itself (` or ~).
fence_length: usizeFor fenced code blocks, the length of the fence.
fence_offset: usizeFor fenced code blocks, the indentation level of the code within the block.
info: StringFor fenced code blocks, the info string after the opening fence, if any.
literal: StringThe 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§
Source§impl Clone for NodeCodeBlock
impl Clone for NodeCodeBlock
Source§fn clone(&self) -> NodeCodeBlock
fn clone(&self) -> NodeCodeBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeCodeBlock
impl Debug for NodeCodeBlock
Source§impl Default for NodeCodeBlock
impl Default for NodeCodeBlock
Source§fn default() -> NodeCodeBlock
fn default() -> NodeCodeBlock
Returns the “default value” for a type. Read more
Source§impl PartialEq for NodeCodeBlock
impl PartialEq for NodeCodeBlock
impl Eq for NodeCodeBlock
impl StructuralPartialEq for NodeCodeBlock
Auto Trait Implementations§
impl Freeze for NodeCodeBlock
impl RefUnwindSafe for NodeCodeBlock
impl Send for NodeCodeBlock
impl Sync for NodeCodeBlock
impl Unpin for NodeCodeBlock
impl UnwindSafe for NodeCodeBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> PowerToOwned for T
impl<T> PowerToOwned for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().