pub struct RawArchive { /* private fields */ }Expand description
An open ZIP archive without a reader
Implementations§
Source§impl RawArchive
impl RawArchive
Sourcepub fn new<R: Read + Seek>(reader: &mut R) -> Result<Self>
pub fn new<R: Read + Seek>(reader: &mut R) -> Result<Self>
Creates a RawArchive from a reader.
The same reader should be used for other methods.
Sourcepub fn get_by_name(&mut self, name: &str) -> Option<&Metadata>
pub fn get_by_name(&mut self, name: &str) -> Option<&Metadata>
Gets a file by its name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawArchive
impl RefUnwindSafe for RawArchive
impl Send for RawArchive
impl Sync for RawArchive
impl Unpin for RawArchive
impl UnsafeUnpin for RawArchive
impl UnwindSafe for RawArchive
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