pub struct File { /* private fields */ }Expand description
The File contains the appropriate FileHeader and FileFooter of a dumped File. Also this struct contains a position value for a Reader.
Implementations§
Source§impl File
impl File
Sourcepub fn new(header: FileHeader, footer: FileFooter) -> File
pub fn new(header: FileHeader, footer: FileFooter) -> File
creates a new File instance for the given FileHeader and FileFooter.
Sourcepub fn header(&self) -> &FileHeader
pub fn header(&self) -> &FileHeader
returns a reference of the underlying FileHeader.
returns a reference of the underlying FileFooter.
Sourcepub fn set_position(&mut self, position: u64)
pub fn set_position(&mut self, position: u64)
sets the position of the Reader.
Sourcepub fn length_of_data(&self) -> u64
pub fn length_of_data(&self) -> u64
returns the length of the data, read from the underlying FileFooter.
Trait Implementations§
impl Eq for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more