use crate::zip::{ZipFileReader, ZipResult}; use crate::{Archive, Zip}; use std::io::{Read, Seek, Write}; impl Archive> { pub fn comment(&self) -> &String { self.driver.comment() } pub fn get_file_reader_by_index_with_password<'d>( &'d mut self, index: usize, password: &[u8], ) -> ZipResult> { self.driver .get_file_reader_with_optional_password(index, Some(password)) } #[inline] pub fn get_file_reader_by_name_with_password<'d>( &'d mut self, name: &str, password: &[u8], ) -> ZipResult> { self.get_file_reader_by_index_with_password(self.get_file_index(name)?, password) } } impl Archive> {}