pub struct TocEntry {
pub level: u8,
pub text: String,
pub slug: String,
pub line: usize,
}Expand description
A single entry in the extracted Table of Contents.
Fields§
§level: u8Heading level (1..=6).
text: StringRaw heading text.
slug: StringGenerated anchor slug.
line: usize1-based source line number of the heading (from the AST span), or 0 when unknown.
Trait Implementations§
impl Eq for TocEntry
impl StructuralPartialEq for TocEntry
Auto Trait Implementations§
impl Freeze for TocEntry
impl RefUnwindSafe for TocEntry
impl Send for TocEntry
impl Sync for TocEntry
impl Unpin for TocEntry
impl UnsafeUnpin for TocEntry
impl UnwindSafe for TocEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.