[−][src]Struct comrak::nodes::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.
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 Clone for NodeCodeBlock
[src]
fn clone(&self) -> NodeCodeBlock
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NodeCodeBlock
[src]
impl Default for NodeCodeBlock
[src]
fn default() -> NodeCodeBlock
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeCodeBlock
impl Send for NodeCodeBlock
impl Sync for NodeCodeBlock
impl Unpin for NodeCodeBlock
impl UnwindSafe for NodeCodeBlock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,