[−][src]Struct chmlib::ChmFile
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]
&mut self,
filter: Filter,
cb: F
) -> Result<(), EnumerationError> where
F: FnMut(&mut ChmFile, UnitInfo) -> C,
C: Into<Continuation>,
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]
&mut self,
filter: Filter,
prefix: P,
cb: F
) -> Result<(), EnumerationError> where
P: AsRef<Path>,
F: FnMut(&mut ChmFile, UnitInfo) -> C,
C: Into<Continuation>,
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]
&mut self,
unit: &UnitInfo,
offset: u64,
buffer: &mut [u8]
) -> Result<usize, ReadError>
Trait Implementations
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,