pub struct CPack<F: Read + Seek> { /* private fields */ }
Expand description
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.
Implementations§
Source§impl<F: Read + Seek> CPack<F>
impl<F: Read + Seek> CPack<F>
Sourcepub fn new_from_file(file: F) -> Result<CPack<F>, CPackError>
pub fn new_from_file(file: F) -> Result<CPack<F>, CPackError>
Create a CPack struct from a cpack file
Sourcepub fn get_file(&self, id: usize) -> Result<PartitionMutex<F>, CPackError>
pub fn get_file(&self, id: usize) -> Result<PartitionMutex<F>, CPackError>
get the file by an id, and return it as PartitionMutex. panic if it doesn’t exist
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for CPack<F>
impl<F> RefUnwindSafe for CPack<F>
impl<F> Send for CPack<F>where
F: Send,
impl<F> Sync for CPack<F>where
F: Send,
impl<F> Unpin for CPack<F>
impl<F> UnwindSafe for CPack<F>
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