var searchIndex = {}; searchIndex["nbt"] = {"doc":"MC Named Binary Tag type.","items":[[3,"Blob","nbt","A generic, complete object in Named Binary Tag format.",null,null],[4,"Error","","Errors that may be encountered when constructing, parsing, or encoding\n`NbtValue` and `NbtBlob` objects.",null,null],[13,"IoError","","Wraps errors emitted by methods during I/O operations.",0,null],[13,"InvalidTypeId","","An error for when an unknown type ID is encountered in decoding NBT\nbinary representations. Includes the ID in question.",0,null],[13,"HeterogeneousList","","An error emitted when trying to create `NbtBlob`s with incorrect lists.",0,null],[13,"NoRootCompound","","An error for when NBT binary representations do not begin with an\n`NbtValue::Compound`.",0,null],[13,"InvalidUtf8","","An error for when NBT binary representations contain invalid UTF-8\nstrings.",0,null],[13,"IncompleteNbtValue","","An error for when NBT binary representations are missing end tags,\ncontain fewer bytes than advertised, or are otherwise incomplete.",0,null],[13,"TagMismatch","","An error encountered when parsing NBT binary representations, where\ndeserialization encounters a different tag than expected.",0,null],[13,"UnexpectedField","","An error encountered when parsing NBT binary representations, where\ndeserialization encounters a field name it is not expecting.",0,null],[4,"Value","","Values which can be represented in the Named Binary Tag format.",null,null],[13,"Byte","","",1,null],[13,"Short","","",1,null],[13,"Int","","",1,null],[13,"Long","","",1,null],[13,"Float","","",1,null],[13,"Double","","",1,null],[13,"ByteArray","","",1,null],[13,"String","","",1,null],[13,"List","","",1,null],[13,"Compound","","",1,null],[13,"IntArray","","",1,null],[0,"serialize","","Contains functions for serializing arbitrary objects to the Named Binary\nTag format.",null,null],[5,"close_nbt","nbt::serialize","A convenience function for closing NBT format objects.",null,{"inputs":[{"name":"w"}],"output":{"name":"result"}}],[5,"emit_next_header","","Extracts the next header (tag and name) from an NBT format source.",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"to_writer","","Serializes an object into NBT format at a given destination.",null,{"inputs":[{"name":"w"},{"name":"t"}],"output":{"name":"result"}}],[5,"from_reader","","Deserializes an object in NBT format from a given source.",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_nbt","","Deserializes a bare object (i.e. with no name or tag) from a given source.",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[0,"raw","","Contains raw, primitive functions for serializing and deserializing basic\nNamed Binary Tag types.",null,null],[5,"write_bare_byte","nbt::serialize::raw","",null,{"inputs":[{"name":"w"},{"name":"i8"}],"output":{"name":"result"}}],[5,"write_bare_short","","",null,{"inputs":[{"name":"w"},{"name":"i16"}],"output":{"name":"result"}}],[5,"write_bare_int","","",null,{"inputs":[{"name":"w"},{"name":"i32"}],"output":{"name":"result"}}],[5,"write_bare_long","","",null,{"inputs":[{"name":"w"},{"name":"i64"}],"output":{"name":"result"}}],[5,"write_bare_float","","",null,{"inputs":[{"name":"w"},{"name":"f32"}],"output":{"name":"result"}}],[5,"write_bare_double","","",null,{"inputs":[{"name":"w"},{"name":"f64"}],"output":{"name":"result"}}],[5,"write_bare_byte_array","","",null,null],[5,"write_bare_int_array","","",null,null],[5,"write_bare_string","","",null,{"inputs":[{"name":"w"},{"name":"str"}],"output":{"name":"result"}}],[5,"write_bare_list","","",null,{"inputs":[{"name":"w"},{"name":"i"}],"output":{"name":"result"}}],[5,"write_bare_compound","","",null,{"inputs":[{"name":"w"},{"name":"i"}],"output":{"name":"result"}}],[5,"read_bare_byte","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_short","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_int","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_long","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_float","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_double","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_byte_array","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_int_array","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_string","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"read_bare_list","","",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[8,"NbtFmt","nbt::serialize","A trait indicating that the type has a Named Binary Tag representation.",null,null],[16,"Into","","",2,null],[10,"to_bare_nbt","","Convert this type to NBT format using the specified `io::Write`\ndestination, but does not serialize its identifying NBT tag or name.",2,null],[10,"read_bare_nbt","","Reads from the specified `io::Read` source bytes that can be coverted\ninto an instance of this type.",2,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"to_nbt","","Convert this type to NBT format using the specified `io::Write`\ndestination, incuding its tag and a given name.",2,null],[11,"tag","","Indicates the NBT tag that this type corresponds to. Most custom types\n(usually structs) will advertise the default, `0x0a`, which is the\ndefault.",2,{"inputs":[],"output":{"name":"u8"}}],[11,"is_bare","","Indicates whether this type is "bare", in that it must be wrapped in an\nNBT Compound before serialization. By default this is `false`, since\nmost imeplementations will be Compound-like objects. Primitive NBT\ntypes (`i8`, `i16`, `String`, etc.) return `true`.",2,{"inputs":[],"output":{"name":"bool"}}],[11,"eq","nbt","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"new","","Create a new NBT file format representation with the given name.",3,{"inputs":[{"name":"string"}],"output":{"name":"blob"}}],[11,"from_reader","","Extracts an `Blob` object from an `io::Read` source.",3,{"inputs":[{"name":"read"}],"output":{"name":"result"}}],[11,"from_gzip","","Extracts an `Blob` object from an `io::Read` source that is\ncompressed using the Gzip format.",3,{"inputs":[{"name":"read"}],"output":{"name":"result"}}],[11,"from_zlib","","Extracts an `Blob` object from an `io::Read` source that is\ncompressed using the zlib format.",3,{"inputs":[{"name":"read"}],"output":{"name":"result"}}],[11,"write","","Writes the binary representation of this `Blob` to an `io::Write`\ndestination.",3,null],[11,"write_gzip","","Writes the binary representation of this `Blob`, compressed using\nthe Gzip format, to an `io::Write` destination.",3,null],[11,"write_zlib","","Writes the binary representation of this `Blob`, compressed using\nthe Zlib format, to an `io::Write` dst.",3,null],[11,"insert","","Insert an `Value` with a given name into this `Blob` object. This\nmethod is just a thin wrapper around the underlying `HashMap` method of\nthe same name.",3,null],[11,"len","","The uncompressed length of this `Blob`, in bytes.",3,null],[11,"index","","",3,null],[11,"fmt","","",3,null],[11,"fmt","","",0,null],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"cause","","",0,null],[11,"eq","","",0,null],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",0,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"id","","The type ID of this `Value`, which is a single byte in the range\n`0x01` to `0x0b`.",1,null],[11,"len","","The length of the payload of this `Value`, in bytes.",1,null],[11,"write_header","","Writes the header (that is, the value's type ID and optionally a title)\nof this `Value` to an `io::Write` destination.",1,null],[11,"write","","Writes the payload of this `Value` to an `io::Write` destination.",1,null],[11,"read_header","","Reads any valid `Value` header (that is, a type ID and a title of\narbitrary UTF-8 bytes) from an `io::Read` source.",1,{"inputs":[{"name":"read"}],"output":{"name":"result"}}],[11,"from_reader","","Reads the payload of an `Value` with a given type ID from an\n`io::Read` source.",1,{"inputs":[{"name":"u8"},{"name":"read"}],"output":{"name":"result"}}],[11,"fmt","","",1,null],[11,"from","","",1,{"inputs":[{"name":"i8"}],"output":{"name":"value"}}],[11,"from","","",1,{"inputs":[{"name":"i16"}],"output":{"name":"value"}}],[11,"from","","",1,{"inputs":[{"name":"i32"}],"output":{"name":"value"}}],[11,"from","","",1,{"inputs":[{"name":"i64"}],"output":{"name":"value"}}],[11,"from","","",1,{"inputs":[{"name":"f32"}],"output":{"name":"value"}}],[11,"from","","",1,{"inputs":[{"name":"f64"}],"output":{"name":"value"}}],[11,"from","","",1,{"inputs":[{"name":"str"}],"output":{"name":"value"}}],[11,"from","","",1,{"inputs":[{"name":"string"}],"output":{"name":"value"}}],[11,"from","","",1,{"inputs":[{"name":"vec"}],"output":{"name":"value"}}],[11,"from","","",1,null],[11,"from","","",1,{"inputs":[{"name":"vec"}],"output":{"name":"value"}}],[11,"from","","",1,null],[6,"Result","","A convenient alias type for results when reading/writing the Named Binary\nTag format.",null,null]],"paths":[[4,"Error"],[4,"Value"],[8,"NbtFmt"],[3,"Blob"]]}; initSearch(searchIndex);