pub struct CarvedFile {
pub kind: &'static str,
pub offset: u64,
}Expand description
A file header recovered from a byte region by its magic signature.
Fields§
§kind: &'static strShort type label, e.g. "PNG", "ZIP", "PDF".
offset: u64Absolute byte offset of the header (caller’s base_offset + position).
Trait Implementations§
Source§impl Clone for CarvedFile
impl Clone for CarvedFile
Source§fn clone(&self) -> CarvedFile
fn clone(&self) -> CarvedFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CarvedFile
impl Debug for CarvedFile
impl Eq for CarvedFile
Source§impl PartialEq for CarvedFile
impl PartialEq for CarvedFile
Source§fn eq(&self, other: &CarvedFile) -> bool
fn eq(&self, other: &CarvedFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CarvedFile
Auto Trait Implementations§
impl Freeze for CarvedFile
impl RefUnwindSafe for CarvedFile
impl Send for CarvedFile
impl Sync for CarvedFile
impl Unpin for CarvedFile
impl UnsafeUnpin for CarvedFile
impl UnwindSafe for CarvedFile
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