pub struct ArchiveEntry<'a> {
pub path: &'a [u8],
pub data: &'a [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 [&[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: &'a [u8]§data: &'a [u8]Auto Trait Implementations§
impl<'a> Freeze for ArchiveEntry<'a>
impl<'a> RefUnwindSafe for ArchiveEntry<'a>
impl<'a> Send for ArchiveEntry<'a>
impl<'a> Sync for ArchiveEntry<'a>
impl<'a> Unpin for ArchiveEntry<'a>
impl<'a> UnsafeUnpin for ArchiveEntry<'a>
impl<'a> UnwindSafe for ArchiveEntry<'a>
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