Struct NodeCommentBlock

#[non_exhaustive]
pub struct NodeCommentBlock { pub literal: String, pub closed: bool }

A block comment span

Fields

literal: String

The literal contents of the comment 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.

closed: bool

Whether this comment block was explicitly closed by a closing fence.

Implementations

impl NodeCommentBlock

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

Create a new NodeCommentBlock with the given literal content.

Trait Implementations

impl Clone for NodeCommentBlock

fn clone(&self) -> Self

impl Debug for NodeCommentBlock

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

impl Default for NodeCommentBlock

fn default() -> Self

impl Eq for NodeCommentBlock

impl PartialEq for NodeCommentBlock

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

impl StructuralPartialEq for NodeCommentBlock

Auto Trait Implementations

impl Freeze for NodeCommentBlock

impl RefUnwindSafe for NodeCommentBlock

impl Send for NodeCommentBlock

impl Sync for NodeCommentBlock

impl Unpin for NodeCommentBlock

impl UnsafeUnpin for NodeCommentBlock

impl UnwindSafe for NodeCommentBlock

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for NodeCommentBlock

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

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

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

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

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