pub struct Body<'a> {
pub content: Vec<BodyContent<'a>>,
}
Expand description
Document Body
This is the main document editing surface.
Fields§
§content: Vec<BodyContent<'a>>
Specifies the contents of the body of the document.
Implementations§
Source§impl<'a> Body<'a>
impl<'a> Body<'a>
pub fn push<T: Into<BodyContent<'a>>>(&mut self, content: T) -> &mut Self
pub fn text(&self) -> String
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 Body<'a>
impl<'a> RefUnwindSafe for Body<'a>
impl<'a> Send for Body<'a>
impl<'a> Sync for Body<'a>
impl<'a> Unpin for Body<'a>
impl<'a> UnwindSafe for Body<'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