[][src]Struct pmd_cpack::CPack

pub struct CPack<F: Read + Seek> { /* fields omitted */ }

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

impl<F: Debug + Read + Seek> Debug for CPack<F>[src]

Auto Trait Implementations

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

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, 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.