Struct HeadingMeta
pub struct HeadingMeta { pub level: u8, pub content: String }
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".
Trait Implementations
impl Clone for HeadingMeta
fn clone(&self) -> Self
impl Debug for HeadingMeta
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl Freeze for HeadingMeta
impl RefUnwindSafe for HeadingMeta
impl Send for HeadingMeta
impl Sync for HeadingMeta
impl Unpin for HeadingMeta
impl UnsafeUnpin for HeadingMeta
impl UnwindSafe for HeadingMeta
Blanket Implementations
impl<T> Any for HeadingMeta
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for HeadingMeta
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for HeadingMeta
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for HeadingMeta
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for HeadingMeta
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for HeadingMeta
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for HeadingMeta
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 HeadingMeta
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for HeadingMeta
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>