pub struct FilesInMemory {
    pub source: String,
    /* private fields */
}Fields§
§source: StringThe source of 7z archive, including but not limited to filename
Implementations§
Source§impl FilesInMemory
 
impl FilesInMemory
pub fn from_7z_reader<T: Read + Seek>( src: SevenZReader<T>, source: Option<String>, ) -> Result<FilesInMemory, Error>
pub fn from_7z_file( path: impl AsRef<Path> + Display, password: &str, ) -> Result<FilesInMemory, Error>
Trait Implementations§
Source§impl Clone for FilesInMemory
 
impl Clone for FilesInMemory
Source§fn clone(&self) -> FilesInMemory
 
fn clone(&self) -> FilesInMemory
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 Debug for FilesInMemory
 
impl Debug for FilesInMemory
Source§impl FilesRead for FilesInMemory
 
impl FilesRead for FilesInMemory
fn sub_directory(&self, dir: &str) -> SubDirectory<'_>
fn path(&self) -> String
fn files(&self) -> Vec<FileInfo>
fn open_file(&self, filename: &str) -> Result<Box<dyn Read + '_>, Error>
fn read_file(&self, filename: &str, dest: &mut Vec<u8>) -> Result<(), Error>
fn read_file_nocopy(&self, filename: &str) -> Result<Option<ArcSlice>, Error>
fn read_file_as_bytes(&self, filename: &str) -> Result<Vec<u8>, Error>
fn read_file_as_arc_slice(&self, filename: &str) -> Result<ArcSlice, Error>
Auto Trait Implementations§
impl Freeze for FilesInMemory
impl RefUnwindSafe for FilesInMemory
impl Send for FilesInMemory
impl Sync for FilesInMemory
impl Unpin for FilesInMemory
impl UnwindSafe for FilesInMemory
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