pub struct DocxFile { /* private fields */ }
Expand description
An extracted docx file
Implementations§
Source§impl DocxFile
impl DocxFile
Sourcepub fn from_reader<T: Read + Seek>(reader: T) -> DocxResult<Self>
pub fn from_reader<T: Read + Seek>(reader: T) -> DocxResult<Self>
Extracts from reader
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> DocxResult<Self>
pub fn from_file<P: AsRef<Path>>(path: P) -> DocxResult<Self>
Extracts from file
Sourcepub fn parse(&self) -> DocxResult<Docx<'_>>
pub fn parse(&self) -> DocxResult<Docx<'_>>
Parses content into Docx
struct
Auto Trait Implementations§
impl Freeze for DocxFile
impl RefUnwindSafe for DocxFile
impl Send for DocxFile
impl Sync for DocxFile
impl Unpin for DocxFile
impl UnwindSafe for DocxFile
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