pub struct ReportSection { /* private fields */ }Expand description
Represents a section of the report, containing a title and multiple content blocks.
Implementations§
Source§impl ReportSection
impl ReportSection
Sourcepub fn new(title: &str) -> Self
pub fn new(title: &str) -> Self
Creates a new section with the given title.
§Arguments
title- A string slice that holds the title of the section.
Sourcepub fn add_content(&mut self, content: Markup)
pub fn add_content(&mut self, content: Markup)
Adds a block of content (text, HTML, etc.) to the section.
§Arguments
content- A Markup object representing the content to be added.
Auto Trait Implementations§
impl Freeze for ReportSection
impl RefUnwindSafe for ReportSection
impl Send for ReportSection
impl Sync for ReportSection
impl Unpin for ReportSection
impl UnsafeUnpin for ReportSection
impl UnwindSafe for ReportSection
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