#[non_exhaustive]pub struct Section {
pub first_line: usize,
pub last_line: usize,
pub kind: SectionKind,
pub blocks: Vec<Block>,
}Expand description
One top-level section of the document, its blocks as render draws them, with the source lines it came from.
blocks holds no blank line before or after the content; it is more than one Block only when a
container (a list item, a quote) holds a picture. Lines are 1-based and inclusive.
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.first_line: usize§last_line: usize§kind: SectionKind§blocks: Vec<Block>Trait Implementations§
impl Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Forget for Section
impl Freeze for Section
impl Move for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Sectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Block>: UnsafeUnpin,
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