Struct NodeHeading

struct NodeHeading { ... }

The metadata of a heading.

Fields

level: u8

The level of the header; from 1 to 6 for ATX headings, 1 or 2 for setext headings.

setext: bool

Whether the heading is setext (if not, ATX).

Implementations

impl Clone for NodeHeading

fn clone(self: &Self) -> NodeHeading

impl Copy for NodeHeading

impl Debug for NodeHeading

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

impl Default for NodeHeading

fn default() -> NodeHeading

impl Eq for NodeHeading

impl Freeze for NodeHeading

impl PartialEq for NodeHeading

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

impl RefUnwindSafe for NodeHeading

impl Send for NodeHeading

impl StructuralPartialEq for NodeHeading

impl Sync for NodeHeading

impl Unpin for NodeHeading

impl UnwindSafe for NodeHeading

impl<T> Any for NodeHeading

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for NodeHeading

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

impl<T> BorrowMut for NodeHeading

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

impl<T> CloneToUninit for NodeHeading

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

impl<T> From for NodeHeading

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for NodeHeading

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

impl<T, U> Into for NodeHeading

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 NodeHeading

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

impl<T, U> TryInto for NodeHeading

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