pub struct PackFile<'a> {
pub path: String,
pub kinds: Vec<String>,
pub stored: usize,
pub bytes: Cow<'a, [u8]>,
}Expand description
One file of a Pack.
Fields§
§path: StringIts path in the bundle.
kinds: Vec<String>The kinds it was baked as: none for a file kept as its own bytes.
stored: usizeHow many bytes the pack keeps of it.
bytes: Cow<'a, [u8]>Its bytes, unpacked: a baked file’s (Packed reads them), or the
file’s own.
Trait Implementations§
impl<'a> Eq for PackFile<'a>
impl<'a> StructuralPartialEq for PackFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackFile<'a>
impl<'a> RefUnwindSafe for PackFile<'a>
impl<'a> Send for PackFile<'a>
impl<'a> Sync for PackFile<'a>
impl<'a> Unpin for PackFile<'a>
impl<'a> UnsafeUnpin for PackFile<'a>
impl<'a> UnwindSafe for PackFile<'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