Struct NodeBlockDirective

#[non_exhaustive]
pub struct NodeBlockDirective { pub fence_length: usize, pub fence_offset: usize, pub info: String }

The metadata of a container block directive node.

Fields

fence_length: usize

The length of the fence.

fence_offset: usize

The indentation level of the fence marker.

info: String

The info string after the opening fence, if any.

Implementations

impl NodeBlockDirective

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

Create a new NodeBlockDirective with the given info string.

Trait Implementations

impl Clone for NodeBlockDirective

fn clone(&self) -> Self

impl Debug for NodeBlockDirective

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

impl Default for NodeBlockDirective

fn default() -> Self

impl Eq for NodeBlockDirective

impl PartialEq for NodeBlockDirective

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

impl StructuralPartialEq for NodeBlockDirective

Auto Trait Implementations

impl Freeze for NodeBlockDirective

impl RefUnwindSafe for NodeBlockDirective

impl Send for NodeBlockDirective

impl Sync for NodeBlockDirective

impl Unpin for NodeBlockDirective

impl UnsafeUnpin for NodeBlockDirective

impl UnwindSafe for NodeBlockDirective

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for NodeBlockDirective

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

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

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

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

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