Struct HeadingMeta
struct HeadingMeta { ... }
The struct passed to the HeadingAdapter for custom heading implementations.
Fields
level: u8The level of the heading; from 1 to 6 for ATX headings, 1 or 2 for setext headings.
content: StringThe content of the heading as a "flattened" string—flattened in the sense that any
<strong>or other tags are removed. In the Markdown heading## This is **bold**, for example, the would be the string"This is bold".
Implementations
impl Clone for HeadingMeta
fn clone(self: &Self) -> HeadingMeta
impl Debug for HeadingMeta
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Freeze for HeadingMeta
impl RefUnwindSafe for HeadingMeta
impl Send for HeadingMeta
impl Sync for HeadingMeta
impl Unpin for HeadingMeta
impl UnwindSafe for HeadingMeta
impl<T> Any for HeadingMeta
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for HeadingMeta
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for HeadingMeta
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for HeadingMeta
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for HeadingMeta
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for HeadingMeta
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for HeadingMeta
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for HeadingMeta
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for HeadingMeta
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>