var searchIndex = {}; searchIndex["bincode"] = {"doc":"`bincode` is a crate for encoding and decoding using a tiny binary\nserialization strategy.","items":[[3,"RefBox","bincode","A struct for encoding nested reference types.",null,null],[3,"StrBox","","Like a RefBox, but encoding from a `str` and decoedes to a `String`.",null,null],[3,"SliceBox","","Like a RefBox, but encodes from a `[T]` and encodes to a `Vec<T>`.",null,null],[3,"EncoderWriter","","An Encoder that encodes values directly into a Writer.",null,null],[3,"DecoderReader","","A Decoder that reads bytes from a buffer.",null,null],[4,"EncodingError","","An error that can be produced during encoding.",null,null],[13,"IoError","","An error originating from the underlying `Writer`.",0,null],[13,"SizeLimit","","An object could not be encoded with the given size limit.",0,null],[4,"DecodingError","","An error that can be produced during decoding.",null,null],[13,"IoError","","If the error stems from the reader that is being used\nduring decoding, that error will be stored and returned here.",1,null],[13,"InvalidEncoding","","If the bytes in the reader are not decodable because of an invalid\nencoding, this error will be returned. This error is only possible\nif a stream is corrupted. A stream produced from `encode` or `encode_into`\nshould **never** produce an InvalidEncoding error.",1,null],[13,"SizeLimit","","If decoding a message takes more than the provided size limit, this\nerror is returned.",1,null],[4,"SizeLimit","","A limit on the amount of bytes that can be read or written.",null,null],[13,"Infinite","","",2,null],[13,"Bounded","","",2,null],[5,"encode","","Encodes an encodable object into a `Vec` of bytes.",null,{"inputs":[{"name":"t"},{"name":"sizelimit"}],"output":{"name":"encodingresult"}}],[5,"decode","","Decodes a slice of bytes into an object.",null,null],[5,"encode_into","","Encodes an object directly into a `Writer`.",null,{"inputs":[{"name":"t"},{"name":"w"},{"name":"sizelimit"}],"output":{"name":"encodingresult"}}],[5,"decode_from","","Decoes an object directly from a `Buffer`ed Reader.",null,{"inputs":[{"name":"r"},{"name":"sizelimit"}],"output":{"name":"decodingresult"}}],[5,"encoded_size","","Returns the size that an object would be if encoded using bincode.",null,{"inputs":[{"name":"t"}],"output":{"name":"u64"}}],[5,"encoded_size_bounded","","Given a maximum size limit, check how large an object would be if it\nwere to be encoded.",null,{"inputs":[{"name":"t"},{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",0,null],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"cause","","",0,null],[11,"new","","",3,{"inputs":[{"name":"w"}],"output":{"name":"encoderwriter"}}],[11,"emit_nil","","",3,null],[11,"emit_usize","","",3,null],[11,"emit_u64","","",3,null],[11,"emit_u32","","",3,null],[11,"emit_u16","","",3,null],[11,"emit_u8","","",3,null],[11,"emit_isize","","",3,null],[11,"emit_i64","","",3,null],[11,"emit_i32","","",3,null],[11,"emit_i16","","",3,null],[11,"emit_i8","","",3,null],[11,"emit_bool","","",3,null],[11,"emit_f64","","",3,null],[11,"emit_f32","","",3,null],[11,"emit_char","","",3,null],[11,"emit_str","","",3,null],[11,"emit_enum","","",3,null],[11,"emit_enum_variant","","",3,null],[11,"emit_enum_variant_arg","","",3,null],[11,"emit_enum_struct_variant","","",3,null],[11,"emit_enum_struct_variant_field","","",3,null],[11,"emit_struct","","",3,null],[11,"emit_struct_field","","",3,null],[11,"emit_tuple","","",3,null],[11,"emit_tuple_arg","","",3,null],[11,"emit_tuple_struct","","",3,null],[11,"emit_tuple_struct_arg","","",3,null],[11,"emit_option","","",3,null],[11,"emit_option_none","","",3,null],[11,"emit_option_some","","",3,null],[11,"emit_seq","","",3,null],[11,"emit_seq_elt","","",3,null],[11,"emit_map","","",3,null],[11,"emit_map_elt_key","","",3,null],[11,"emit_map_elt_val","","",3,null],[11,"fmt","","",1,null],[11,"fmt","","",1,null],[11,"description","","",1,null],[11,"cause","","",1,null],[11,"from","","",1,{"inputs":[{"name":"ioerror"}],"output":{"name":"decodingerror"}}],[11,"new","","",4,{"inputs":[{"name":"r"},{"name":"sizelimit"}],"output":{"name":"decoderreader"}}],[11,"bytes_read","","Returns the number of bytes read from the contained Reader.",4,null],[11,"read_nil","","",4,null],[11,"read_usize","","",4,null],[11,"read_u64","","",4,null],[11,"read_u32","","",4,null],[11,"read_u16","","",4,null],[11,"read_u8","","",4,null],[11,"read_isize","","",4,null],[11,"read_i64","","",4,null],[11,"read_i32","","",4,null],[11,"read_i16","","",4,null],[11,"read_i8","","",4,null],[11,"read_bool","","",4,null],[11,"read_f64","","",4,null],[11,"read_f32","","",4,null],[11,"read_char","","",4,null],[11,"read_str","","",4,null],[11,"read_enum","","",4,null],[11,"read_enum_variant","","",4,null],[11,"read_enum_variant_arg","","",4,null],[11,"read_enum_struct_variant","","",4,null],[11,"read_enum_struct_variant_field","","",4,null],[11,"read_struct","","",4,null],[11,"read_struct_field","","",4,null],[11,"read_tuple","","",4,null],[11,"read_tuple_arg","","",4,null],[11,"read_tuple_struct","","",4,null],[11,"read_tuple_struct_arg","","",4,null],[11,"read_option","","",4,null],[11,"read_seq","","",4,null],[11,"read_seq_elt","","",4,null],[11,"read_map","","",4,null],[11,"read_map_elt_key","","",4,null],[11,"read_map_elt_val","","",4,null],[11,"error","","",4,null],[11,"clone","","",5,null],[11,"hash","","",5,null],[11,"cmp","","",5,null],[11,"partial_cmp","","",5,null],[11,"lt","","",5,null],[11,"le","","",5,null],[11,"gt","","",5,null],[11,"ge","","",5,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",6,null],[11,"hash","","",6,null],[11,"cmp","","",6,null],[11,"partial_cmp","","",6,null],[11,"lt","","",6,null],[11,"le","","",6,null],[11,"gt","","",6,null],[11,"ge","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"fmt","","",6,null],[11,"clone","","",7,null],[11,"hash","","",7,null],[11,"cmp","","",7,null],[11,"partial_cmp","","",7,null],[11,"lt","","",7,null],[11,"le","","",7,null],[11,"gt","","",7,null],[11,"ge","","",7,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[11,"fmt","","",7,null],[11,"new","","Creates a new RefBox that looks at a borrowed value.",5,{"inputs":[{"name":"t"}],"output":{"name":"refbox"}}],[11,"take","","Takes the value out of this refbox.",5,null],[11,"try_take","","Tries to take the value out of this refbox.",5,null],[11,"encode","","",5,null],[11,"decode","","",5,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"new","","Creates a new StrBox that looks at a borrowed value.",6,{"inputs":[{"name":"str"}],"output":{"name":"strbox"}}],[11,"into_string","","Extract a String from a StrBox.",6,null],[11,"to_owned","","Convert to an Owned `SliceBox`.",6,null],[11,"as_ref","","",6,null],[11,"boxed","","Creates a new StrBox made from an allocated String.",6,{"inputs":[{"name":"string"}],"output":{"name":"strbox"}}],[11,"take","","Takes the value out of this refbox.",6,null],[11,"try_take","","Tries to take the value out of this refbox.",6,null],[11,"encode","","",6,null],[11,"decode","","",6,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"new","","Creates a new RefBox that looks at a borrowed value.",7,null],[11,"into_vec","","Extract a `Vec<T>` from a `SliceBox`.",7,null],[11,"to_owned","","Convert to an Owned `SliceBox`.",7,null],[11,"boxed","","Creates a new SliceBox made from an allocated `Vec<T>`.",7,{"inputs":[{"name":"vec"}],"output":{"name":"slicebox"}}],[11,"take","","Takes the value out of this refbox.",7,null],[11,"try_take","","Tries to take the value out of this refbox.",7,null],[11,"encode","","",7,null],[11,"decode","","",7,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"deref","","",5,null],[6,"EncodingResult","","",null,null],[6,"DecodingResult","","",null,null],[11,"partial_cmp","","",2,null],[11,"lt","","",2,null],[11,"le","","",2,null],[11,"gt","","",2,null],[11,"ge","","",2,null],[11,"cmp","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"hash","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null]],"paths":[[4,"EncodingError"],[4,"DecodingError"],[4,"SizeLimit"],[3,"EncoderWriter"],[3,"DecoderReader"],[3,"RefBox"],[3,"StrBox"],[3,"SliceBox"]]}; initSearch(searchIndex);