#[non_exhaustive]pub struct TocEntry {
pub id: String,
pub title: Title,
pub level: u8,
pub xreflabel: Option<String>,
}Expand description
A TocEntry represents a table of contents entry.
This is collected during parsing from Section.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringUnique identifier for this section (used for anchor links)
title: TitleTitle of the section
level: u8Section level (1 for top-level, 2 for subsection, etc.)
xreflabel: Option<String>Optional cross-reference label (from [[id,xreflabel]] syntax)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TocEntry
impl<'de> Deserialize<'de> for TocEntry
Source§fn deserialize<D>(deserializer: D) -> Result<TocEntry, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<TocEntry, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 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