pub struct ArchiveEntry {
pub path: Cow<'static, [u8]>,
pub data: Vec<u8>,
}Expand description
Struct representing decrypted file.
§Fields
path- Represents path to the decrypted file. For example, graphics files are stored in Graphics/DIR, e.g. Graphics/Actors/Actor1.png.
Note, that path is represented by Vec<u8> because it may contain non-UTF-8 sequences, e.g. Japanese Shift JIS text. In that case, it’s up to you how to handle the path.
data- Represents content of the file.
Fields§
§path: Cow<'static, [u8]>§data: Vec<u8>Auto Trait Implementations§
impl Freeze for ArchiveEntry
impl RefUnwindSafe for ArchiveEntry
impl Send for ArchiveEntry
impl Sync for ArchiveEntry
impl Unpin for ArchiveEntry
impl UnwindSafe for ArchiveEntry
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