pub struct MarkdownHeading {
pub level: u8,
pub text: String,
pub line: usize,
pub anchor: String,
}Expand description
A Markdown ATX heading.
Fields§
§level: u8The heading level from 1 to 6.
text: StringThe cleaned heading text.
line: usizeThe 1-based line where the heading was found.
anchor: StringA practical anchor derived from the heading text.
Trait Implementations§
Source§impl Clone for MarkdownHeading
impl Clone for MarkdownHeading
Source§fn clone(&self) -> MarkdownHeading
fn clone(&self) -> MarkdownHeading
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarkdownHeading
impl Debug for MarkdownHeading
Source§impl PartialEq for MarkdownHeading
impl PartialEq for MarkdownHeading
Source§fn eq(&self, other: &MarkdownHeading) -> bool
fn eq(&self, other: &MarkdownHeading) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MarkdownHeading
impl StructuralPartialEq for MarkdownHeading
Auto Trait Implementations§
impl Freeze for MarkdownHeading
impl RefUnwindSafe for MarkdownHeading
impl Send for MarkdownHeading
impl Sync for MarkdownHeading
impl Unpin for MarkdownHeading
impl UnsafeUnpin for MarkdownHeading
impl UnwindSafe for MarkdownHeading
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more