pub struct Heading {
pub text: String,
pub byte_offset: usize,
pub raw_range: Range<usize>,
pub level: u32,
}Expand description
One ATX or setext heading. text is the trimmed text content
(# markers and trailing whitespace stripped); raw_range covers
the whole heading line(s).
Fields§
§text: String§byte_offset: usize§raw_range: Range<usize>§level: u321 through 6 for H1..H6.
Trait Implementations§
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