pub struct PakFile {
pub info: PakInfo,
pub mount_point: String,
pub file_indexes: HashMap<String, PakEntry>,
/* private fields */
}
Fields§
§info: PakInfo
§mount_point: String
§file_indexes: HashMap<String, PakEntry>
Implementations§
Source§impl PakFile
impl PakFile
pub async fn from_path(path: &Path) -> Result<Self, PakError>
pub async fn from_file(file: File) -> Result<Self, PakError>
pub async fn from_memory(buffer: Vec<u8>) -> Result<Self, PakError>
pub async fn get_entry_data<T: Into<String>>( &mut self, index: T, ) -> Result<Option<Vec<u8>>, PakError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PakFile
impl RefUnwindSafe for PakFile
impl Send for PakFile
impl Sync for PakFile
impl Unpin for PakFile
impl UnwindSafe for PakFile
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