[−][src]Struct pmd_cpack::CPack
A structure that represent a cpack file, used in pokemon mystery dungeon games
Those cpack file are archive that may contain multiple file, each file being identified by an id representing it's order of position in the file.
Methods
impl<F: Read + Seek> CPack<F>
[src]
pub fn new_from_file(file: F) -> Result<CPack<F>, CPackError>
[src]
Create a CPack struct from a cpack file
pub fn len(&self) -> usize
[src]
Return the number of file in the cpack archive
pub fn is_empty(&self) -> bool
[src]
Return true if the cpack archive is empty
pub fn get_file(&self, id: usize) -> Result<PartitionMutex<F>, CPackError>
[src]
get the file by an id, and return it as PartitionMutex. panic if it doesn't exist
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for CPack<F>
impl<F> Send for CPack<F> where
F: Send,
F: Send,
impl<F> Sync for CPack<F> where
F: Send,
F: Send,
impl<F> Unpin for CPack<F>
impl<F> UnwindSafe for CPack<F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,