Struct NodeComment

#[non_exhaustive]
pub struct NodeComment { pub literal: String }

An inline comment span

Fields

literal: String

The literal contents of the comment 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. The %% markers are not included in the literal.

Implementations

impl NodeComment

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

Create a new NodeComment with the given literal content.

Trait Implementations

impl Clone for NodeComment

fn clone(&self) -> Self

impl Debug for NodeComment

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

impl Default for NodeComment

fn default() -> Self

impl Eq for NodeComment

impl PartialEq for NodeComment

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

impl StructuralPartialEq for NodeComment

Auto Trait Implementations

impl Freeze for NodeComment

impl RefUnwindSafe for NodeComment

impl Send for NodeComment

impl Sync for NodeComment

impl Unpin for NodeComment

impl UnsafeUnpin for NodeComment

impl UnwindSafe for NodeComment

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for NodeComment

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

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

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

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

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