pub struct Header<'a> {
pub content: Vec<BodyContent<'a>>,
}
Expand description
The root element of the main document part.
Fields§
§content: Vec<BodyContent<'a>>
Implementations§
Source§impl<'a> Header<'a>
impl<'a> Header<'a>
pub fn push<T: Into<BodyContent<'a>>>(&mut self, content: T) -> &mut Self
pub fn replace_text_simple<S>(&mut self, old: S, new: S)
pub fn replace_text<'b, I, T, S>(&mut self, dic: T) -> DocxResult<()>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Header<'a>
impl<'a> RefUnwindSafe for Header<'a>
impl<'a> Send for Header<'a>
impl<'a> Sync for Header<'a>
impl<'a> Unpin for Header<'a>
impl<'a> UnwindSafe for Header<'a>
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