Struct NodeHtmlBlock

#[non_exhaustive]
pub struct NodeHtmlBlock { pub block_type: u8, pub literal: String }

The metadata of an included HTML block.

Fields

block_type: u8

The HTML block's type

literal: String

The literal contents of the HTML block. Per NodeCodeBlock, the content is included here rather than in any inline.

Implementations

impl NodeHtmlBlock

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

Create a new NodeHtmlBlock with the given literal content.

Trait Implementations

impl Clone for NodeHtmlBlock

fn clone(&self) -> Self

impl Debug for NodeHtmlBlock

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

impl Default for NodeHtmlBlock

fn default() -> Self

impl Eq for NodeHtmlBlock

impl PartialEq for NodeHtmlBlock

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

impl StructuralPartialEq for NodeHtmlBlock

Auto Trait Implementations

impl Freeze for NodeHtmlBlock

impl RefUnwindSafe for NodeHtmlBlock

impl Send for NodeHtmlBlock

impl Sync for NodeHtmlBlock

impl Unpin for NodeHtmlBlock

impl UnsafeUnpin for NodeHtmlBlock

impl UnwindSafe for NodeHtmlBlock

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for NodeHtmlBlock

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

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

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

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

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