var searchIndex = {}; searchIndex["zip"] = {"doc":"A basic ZipReader/Writer crate","items":[[4,"CompressionMethod","zip","Compression methods for the contents of a ZIP file.",null,null],[13,"Stored","","The file is stored (no compression)",0,null],[13,"Deflated","","The file is Deflated",0,null],[13,"Bzip2","","File is compressed using BZIP2 algorithm",0,null],[13,"Unsupported","","Unsupported compression method",0,null],[0,"read","","Structs for reading a ZIP archive",null,null],[3,"ZipArchive","zip::read","Wrapper for reading the contents of a ZIP file.",null,null],[3,"ZipFile","","A struct for reading a zip file",null,null],[11,"new","","Opens a Zip archive and parses the central directory",1,{"inputs":[{"name":"r"}],"output":{"name":"zipresult"}}],[11,"len","","Number of files contained in this zip.",1,null],[11,"by_name","","Search for a file entry by name",1,null],[11,"by_index","","Get a contained file by index",1,null],[11,"into_inner","","Unwrap and return the inner reader object",1,null],[11,"name","","Get the name of the file",2,null],[11,"comment","","Get the comment of the file",2,null],[11,"compression","","Get the compression method used to store the file",2,null],[11,"compressed_size","","Get the size of the file in the archive",2,null],[11,"size","","Get the size of the file when uncompressed",2,null],[11,"last_modified","","Get the time the file was last modified",2,null],[11,"unix_mode","","Get unix mode for the file",2,null],[11,"read","","",2,null],[11,"eq","zip","",0,null],[11,"ne","","",0,null],[11,"clone","","",0,null],[11,"from_u16","","Converts an u16 to its corresponding CompressionMethod",0,{"inputs":[{"name":"u16"}],"output":{"name":"compressionmethod"}}],[11,"to_u16","","Converts a CompressionMethod to a u16",0,null],[0,"write","","Structs for creating a new zip archive",null,null],[3,"ZipWriter","zip::write","Generator for ZIP files.",null,null],[11,"write","","",3,null],[11,"flush","","",3,null],[11,"new","","Initializes the ZipWriter.",3,{"inputs":[{"name":"w"}],"output":{"name":"zipwriter"}}],[11,"start_file","","Start a new file for with the requested compression method.",3,null],[11,"finish","","Finish the last file and write all other zip-structures",3,null],[11,"drop","","",3,null],[0,"result","zip","Error types that can be emitted from this library",null,null],[4,"ZipError","zip::result","Error type for Zip",null,null],[13,"Io","","An Error caused by I/O",4,null],[13,"InvalidArchive","","This file is probably not a zip archive",4,null],[13,"UnsupportedArchive","","This archive is not supported",4,null],[13,"FileNotFound","","The requested file could not be found in the archive",4,null],[6,"ZipResult","","Generic result type with ZipError as its error variant",null,null],[11,"fmt","","",4,null],[11,"from","","",4,{"inputs":[{"name":"error"}],"output":{"name":"ziperror"}}],[11,"fmt","","",4,null],[11,"description","","",4,null],[11,"cause","","",4,null]],"paths":[[4,"CompressionMethod"],[3,"ZipArchive"],[3,"ZipFile"],[3,"ZipWriter"],[4,"ZipError"]]}; initSearch(searchIndex);