Struct webc::VolumeHeader
source · [−]Expand description
Header of a filesystem volume, describing a serialized list of directories and file paths
Fields
top_level: Vec<FsEntry<'a>>
Top-level files / directories already parsed
header_data: &'a [u8]
Unserialized header data as raw bytes
Implementations
sourceimpl<'a> VolumeHeader<'a>
impl<'a> VolumeHeader<'a>
sourcepub fn from_slice(data: &'a [u8]) -> Self
pub fn from_slice(data: &'a [u8]) -> Self
Parses the top-level directory entries from a slice of bytes,
see FsEntry::into_bytes
for information about the binary format
Trait Implementations
sourceimpl<'a> Clone for VolumeHeader<'a>
impl<'a> Clone for VolumeHeader<'a>
sourcefn clone(&self) -> VolumeHeader<'a>
fn clone(&self) -> VolumeHeader<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for VolumeHeader<'a>
impl<'a> Debug for VolumeHeader<'a>
sourceimpl<'a> Default for VolumeHeader<'a>
impl<'a> Default for VolumeHeader<'a>
sourcefn default() -> VolumeHeader<'a>
fn default() -> VolumeHeader<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> PartialEq<VolumeHeader<'a>> for VolumeHeader<'a>
impl<'a> PartialEq<VolumeHeader<'a>> for VolumeHeader<'a>
sourcefn eq(&self, other: &VolumeHeader<'a>) -> bool
fn eq(&self, other: &VolumeHeader<'a>) -> bool
impl<'a> Eq for VolumeHeader<'a>
impl<'a> StructuralEq for VolumeHeader<'a>
impl<'a> StructuralPartialEq for VolumeHeader<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for VolumeHeader<'a>
impl<'a> Send for VolumeHeader<'a>
impl<'a> Sync for VolumeHeader<'a>
impl<'a> Unpin for VolumeHeader<'a>
impl<'a> UnwindSafe for VolumeHeader<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.