pub struct Heading {
pub start: usize,
pub level: usize,
pub text: String,
pub slug: String,
}Expand description
One ATX heading of a page’s markdown.
Fields§
§start: usizeByte offset of the heading line.
level: usize1 for #, 2 for ##, ….
text: String§slug: StringIts slug, -1, -2, … for repeats (C0 2.2).
Trait Implementations§
impl Eq for Heading
impl StructuralPartialEq for Heading
Auto Trait Implementations§
impl Forget for Heading
impl Freeze for Heading
impl Move for Heading
impl RefUnwindSafe for Heading
impl Send for Heading
impl Sync for Heading
impl Unpin for Heading
impl UnsafeUnpin for Heading
impl UnwindSafe for Heading
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