pub struct Document { /* private fields */ }
Expand description
This struct represents the document structure
Implementations§
Source§impl Document
impl Document
Sourcepub fn open<P: AsRef<Path>>(path: P, flag: OpenFlag) -> Result<Self, Error>
pub fn open<P: AsRef<Path>>(path: P, flag: OpenFlag) -> Result<Self, Error>
Open a document from a path
Sourcepub fn from_reader<R: Read>(
reader: &mut R,
global_stream: Option<&mut R>,
flag: OpenFlag,
) -> Result<Self, Error>
pub fn from_reader<R: Read>( reader: &mut R, global_stream: Option<&mut R>, flag: OpenFlag, ) -> Result<Self, Error>
Open a document from a Read
Sourcepub fn into_inner(self) -> Vec<Image>
pub fn into_inner(self) -> Vec<Image>
Consumer self
and return a Vec<Image>
Trait Implementations§
Source§impl IntoIterator for Document
impl IntoIterator for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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