Struct NodeCode

#[non_exhaustive]
pub struct NodeCode { pub num_backticks: usize, pub literal: String }

An inline code span.

Fields

num_backticks: usize

The number of backticks

literal: String

The content of the inline code span. 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 NodeCode

fn new(literal: impl Into<String>) -> Self

Create a new NodeCode with the given literal.

Trait Implementations

impl Clone for NodeCode

fn clone(&self) -> Self

impl Debug for NodeCode

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

impl Default for NodeCode

fn default() -> Self

impl Eq for NodeCode

impl PartialEq for NodeCode

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

impl StructuralPartialEq for NodeCode

Auto Trait Implementations

impl Freeze for NodeCode

impl RefUnwindSafe for NodeCode

impl Send for NodeCode

impl Sync for NodeCode

impl Unpin for NodeCode

impl UnsafeUnpin for NodeCode

impl UnwindSafe for NodeCode

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for NodeCode where T: SimdFrom<F, S>, S: Simd,

impl<T> Any for NodeCode where T: 'static + ?Sized,

impl<T> Borrow<T> for NodeCode where T: ?Sized,

impl<T> BorrowMut<T> for NodeCode where T: ?Sized,

impl<T> CloneToUninit for NodeCode where T: Clone,

impl<T> From<T> for NodeCode

impl<T> ToOwned for NodeCode where T: Clone,

impl<T, S> SimdFrom<T, S> for NodeCode where S: Simd,

impl<T, U> Into<U> for NodeCode where U: From<T>,

impl<T, U> TryFrom<U> for NodeCode where U: Into<T>,

impl<T, U> TryInto<U> for NodeCode where U: TryFrom<T>,