pub struct Heading {
pub level: HeaderLevel,
pub text: String,
pub diagnostic_text: String,
pub source_text: String,
pub location: HeadingLocation,
pub suppressions: Suppressions,
}Expand description
A normalized and positioned Markdown heading.
Fields§
§level: HeaderLevelThe ATX level, or the equivalent level of a Setext heading.
text: StringText used by matchers, normalized according to MarkdownOptions.
diagnostic_text: StringVisible, case-preserving text suitable for diagnostics.
Unlike Self::text, this always has inline markup stripped.
source_text: StringHeader content as spelled in the source after removing block markers.
Backslash escapes, entity references, and inline markup remain intact.
location: HeadingLocationThe source extent and one-based anchor position of the heading.
suppressions: SuppressionsDiagnostic ids disabled by a directive on the immediately prior line.
Trait Implementations§
impl Eq for Heading
impl StructuralPartialEq for Heading
Auto Trait Implementations§
impl Freeze 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.