Struct NodeAlert

struct NodeAlert { ... }

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 Clone for NodeAlert

fn clone(self: &Self) -> NodeAlert

impl Debug for NodeAlert

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

impl Eq for NodeAlert

impl Freeze for NodeAlert

impl PartialEq for NodeAlert

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

impl RefUnwindSafe for NodeAlert

impl Send for NodeAlert

impl StructuralPartialEq for NodeAlert

impl Sync for NodeAlert

impl Unpin for NodeAlert

impl UnsafeUnpin for NodeAlert

impl UnwindSafe for NodeAlert

impl<T> Any for NodeAlert

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for NodeAlert

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for NodeAlert

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for NodeAlert

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for NodeAlert

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for NodeAlert

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for NodeAlert

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for NodeAlert

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for NodeAlert

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>