Struct NodeAlert
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: AlertTypeType of alert
title: Option<String>Overridden title. If
None, then use the default title.multiline: boolOriginated from a multiline blockquote.
fence_length: usizeThe length of the fence (multiline only).
fence_offset: usizeThe indentation level of the fence marker (multiline only)
Trait Implementations
impl Clone for NodeAlert
fn clone(&self) -> NodeAlert
impl Debug for NodeAlert
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for NodeAlert
impl PartialEq for NodeAlert
fn eq(&self, other: &NodeAlert) -> 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<T> Any for NodeAlert
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for NodeAlert
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for NodeAlert
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for NodeAlert
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for NodeAlert
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for NodeAlert
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for NodeAlert
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for NodeAlert
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for NodeAlert
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>