pub struct Pak { /* private fields */ }Expand description
the pak file with all the goodies
Implementations§
Source§impl Pak
impl Pak
Sourcepub fn new(
path: impl AsRef<Path>,
version: Version,
key_hash: Option<&[u8]>,
) -> Result<Self, Error>
pub fn new( path: impl AsRef<Path>, version: Version, key_hash: Option<&[u8]>, ) -> Result<Self, Error>
reads a pak file with a known version
Sourcepub fn new_any(path: impl AsRef<Path>, key: Option<&[u8]>) -> Result<Pak, Error>
pub fn new_any(path: impl AsRef<Path>, key: Option<&[u8]>) -> Result<Pak, Error>
reads a pak file with a guessed version
pub fn version(&self) -> Version
pub fn mount_point(&self) -> &str
Sourcepub fn read<W: Write>(&self, entry: &str, writer: &mut W) -> Result<(), Error>
pub fn read<W: Write>(&self, entry: &str, writer: &mut W) -> Result<(), Error>
reads the entry into any writer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pak
impl RefUnwindSafe for Pak
impl Send for Pak
impl Sync for Pak
impl Unpin for Pak
impl UnwindSafe for Pak
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