[][src]Struct chmlib::ChmFile

pub struct ChmFile { /* fields omitted */ }

Methods

impl ChmFile[src]

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

Open a ChmFile from the file system.

pub fn find<P: AsRef<Path>>(&mut self, path: P) -> Option<UnitInfo>[src]

Find a particular object in the archive.

pub fn for_each<F, C>(
    &mut self,
    filter: Filter,
    cb: F
) -> Result<(), EnumerationError> where
    F: FnMut(&mut ChmFile, UnitInfo) -> C,
    C: Into<Continuation>, 
[src]

Inspect each item within the ChmFile.

pub fn for_each_item_in_dir<F, C, P>(
    &mut self,
    filter: Filter,
    prefix: P,
    cb: F
) -> Result<(), EnumerationError> where
    P: AsRef<Path>,
    F: FnMut(&mut ChmFile, UnitInfo) -> C,
    C: Into<Continuation>, 
[src]

Inspect each item within the ChmFile inside a specified directory.

pub fn read(
    &mut self,
    unit: &UnitInfo,
    offset: u64,
    buffer: &mut [u8]
) -> Result<usize, ReadError>
[src]

Trait Implementations

impl Drop for ChmFile[src]

impl Debug for ChmFile[src]

Auto Trait Implementations

impl !Send for ChmFile

impl !Sync for ChmFile

impl Unpin for ChmFile

impl UnwindSafe for ChmFile

impl RefUnwindSafe for ChmFile

Blanket Implementations

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

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

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.

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

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

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