pub struct DecompressedFile {
pub path: PathBuf,
pub decompressed_bytes: Vec<u8>,
}Expand description
A successfully decompressed file from within an LSPK .pak archive.
Fields§
§path: PathBuf§decompressed_bytes: Vec<u8>Implementations§
Source§impl DecompressedFile
impl DecompressedFile
Sourcepub fn deserialize_as_mod_pak(self) -> Result<ModPakLsx>
pub fn deserialize_as_mod_pak(self) -> Result<ModPakLsx>
Deserializes the contents of the file into the expected XML format of a meta.lsx file.
Trait Implementations§
Source§impl Clone for DecompressedFile
impl Clone for DecompressedFile
Source§fn clone(&self) -> DecompressedFile
fn clone(&self) -> DecompressedFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecompressedFile
impl RefUnwindSafe for DecompressedFile
impl Send for DecompressedFile
impl Sync for DecompressedFile
impl Unpin for DecompressedFile
impl UnwindSafe for DecompressedFile
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