pub struct HeaderFooter {
pub paragraphs: Vec<Paragraph>,
pub unknown_children: Vec<RawXmlNode>,
pub is_header: bool,
}Expand description
A header or footer part
Fields§
§paragraphs: Vec<Paragraph>Paragraphs in the header/footer
unknown_children: Vec<RawXmlNode>Unknown children (preserved for round-trip)
is_header: boolWhether this is a header (true) or footer (false)
Implementations§
Sourcepub fn add_paragraph(&mut self, text: impl Into<String>)
pub fn add_paragraph(&mut self, text: impl Into<String>)
Add a paragraph
Sourcepub fn new_header() -> Self
pub fn new_header() -> Self
Create a new empty header
Create a new empty footer
Trait Implementations§
Source§fn clone(&self) -> HeaderFooter
fn clone(&self) -> HeaderFooter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> HeaderFooter
fn default() -> HeaderFooter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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