[][src]Struct jbig2dec::Document

pub struct Document { /* fields omitted */ }

This struct represents the document structure

Implementations

impl Document[src]

pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Open a document from a path

pub fn from_reader<R: Read>(reader: &mut R) -> Result<Self, Error>[src]

Open a document from a Read

pub fn images(&self) -> &[Image][src]

Get images

pub fn len(&self) -> usize[src]

Number of images

pub fn into_inner(self) -> Vec<Image>[src]

Consumer self and return a Vec<Image>

Trait Implementations

impl Clone for Document[src]

impl Debug for Document[src]

impl Index<usize> for Document[src]

type Output = Image

The returned type after indexing.

impl IndexMut<usize> for Document[src]

impl IntoIterator for Document[src]

type Item = Image

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.