Struct NodeAlert

#[non_exhaustive]
pub struct NodeAlert { pub alert_type: AlertType, pub title: Option<String>, pub multiline: bool, pub fence_length: usize, pub fence_offset: usize }

The metadata of an Alert node.

Fields

alert_type: AlertType

Type of alert

title: Option<String>

Overridden title. If None, then use the default title.

multiline: bool

Originated from a multiline blockquote.

fence_length: usize

The length of the fence (multiline only).

fence_offset: usize

The indentation level of the fence marker (multiline only)

Implementations

impl NodeAlert

fn new(alert_type: AlertType, title: Option<String>) -> Self

Create a new NodeAlert with the given type and title.

Trait Implementations

impl Clone for NodeAlert

fn clone(&self) -> Self

impl Debug for NodeAlert

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

impl Eq for NodeAlert

impl PartialEq for NodeAlert

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

impl StructuralPartialEq for NodeAlert

Auto Trait Implementations

impl Freeze for NodeAlert

impl RefUnwindSafe for NodeAlert

impl Send for NodeAlert

impl Sync for NodeAlert

impl Unpin for NodeAlert

impl UnsafeUnpin for NodeAlert

impl UnwindSafe for NodeAlert

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for NodeAlert

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

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

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

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

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