pub struct HeadingInfo {
pub text: String,
pub slug: String,
pub level: u8,
}Expand description
A heading discovered in a document, in document order.
Fields§
§text: StringPlain-text heading title (inline markup flattened).
slug: StringFinal deduped slug — matches the rendered <hN id="...">.
level: u8Heading level 1..=6.
Trait Implementations§
Source§impl Clone for HeadingInfo
impl Clone for HeadingInfo
Source§fn clone(&self) -> HeadingInfo
fn clone(&self) -> HeadingInfo
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 HeadingInfo
impl Debug for HeadingInfo
impl Eq for HeadingInfo
Source§impl PartialEq for HeadingInfo
impl PartialEq for HeadingInfo
impl StructuralPartialEq for HeadingInfo
Auto Trait Implementations§
impl Freeze for HeadingInfo
impl RefUnwindSafe for HeadingInfo
impl Send for HeadingInfo
impl Sync for HeadingInfo
impl Unpin for HeadingInfo
impl UnsafeUnpin for HeadingInfo
impl UnwindSafe for HeadingInfo
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.