pub struct Section {
pub heading: String,
pub level: u8,
pub line: u32,
pub body: String,
}Expand description
A ##/### section of a markdown body: the heading text plus the byte
slice of the body it spans (heading line through the line before the next
heading of equal-or-shallower depth).
Fields§
§heading: StringThe heading text (without the leading #s).
level: u8Heading depth (number of leading #s).
line: u32The 1-based line where the heading appears.
body: StringThe section body, from the heading line to the next sibling-or-shallower heading (exclusive), as a slice of the original body.
Trait Implementations§
impl Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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.