pub struct FilesystemReaderFile<'a, 'b> { /* private fields */ }Expand description
Filesystem handle for file
Implementations§
Source§impl<'a, 'b> FilesystemReaderFile<'a, 'b>
impl<'a, 'b> FilesystemReaderFile<'a, 'b>
pub fn new( system: &'a FilesystemReader<'b>, file: &'a SquashfsFileReader, ) -> Self
Sourcepub fn reader(&self) -> SquashfsReadFile<'a, 'b> ⓘ
pub fn reader(&self) -> SquashfsReadFile<'a, 'b> ⓘ
Create SquashfsReadFile that impls std::io::Read from FilesystemReaderFile.
This can be used to then call functions from std::io::Read
to de-compress and read the data from this file.
pub fn fragment(&self) -> Option<&'a Fragment>
Trait Implementations§
Source§impl<'a, 'b> Clone for FilesystemReaderFile<'a, 'b>
impl<'a, 'b> Clone for FilesystemReaderFile<'a, 'b>
Source§fn clone(&self) -> FilesystemReaderFile<'a, 'b>
fn clone(&self) -> FilesystemReaderFile<'a, 'b>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> IntoIterator for FilesystemReaderFile<'a, '_>
impl<'a> IntoIterator for FilesystemReaderFile<'a, '_>
impl<'a, 'b> Copy for FilesystemReaderFile<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for FilesystemReaderFile<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for FilesystemReaderFile<'a, 'b>
impl<'a, 'b> Send for FilesystemReaderFile<'a, 'b>
impl<'a, 'b> Sync for FilesystemReaderFile<'a, 'b>
impl<'a, 'b> Unpin for FilesystemReaderFile<'a, 'b>
impl<'a, 'b> !UnwindSafe for FilesystemReaderFile<'a, 'b>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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