var searchIndex = {}; searchIndex["cbor"] = {"doc":"This crate provides an implementation of [RFC\n7049](https://tools.ietf.org/html/rfc7049), which specifies Concise Binary\nObject Representation (CBOR). CBOR adopts and modestly builds on the *data\nmodel* used by JSON, except the encoding is in binary form. Its primary goals\ninclude a balance of implementation size, message size and extensibility.","items":[[3,"DecodedItems","cbor","An iterator over items decoded from CBOR into Rust values.",null,null],[3,"Decoder","","Read CBOR data items into Rust values from the underlying reader `R`.",null,null],[3,"Items","","An iterator over CBOR items in terms of the abstract syntax.",null,null],[3,"Encoder","","Encodes Rust values to CBOR bytes in the underlying writer `W`.",null,null],[3,"DirectDecoder","","Experimental and incomplete direct decoder.",null,null],[3,"CborBytes","","A byte string (major type 2).",null,null],[12,"0","","",0,null],[3,"CborTag","","A tag (major type 6).",null,null],[12,"tag","","The tag number.",1,null],[12,"data","","The data item, represented in terms of CBOR abstract syntax.",1,null],[3,"CborTagEncode","","A special type that can be used to encode CBOR tags.",null,null],[4,"Type","","All core types defined in the CBOR specification.",null,null],[13,"UInt","","",2,null],[13,"UInt8","","",2,null],[13,"UInt16","","",2,null],[13,"UInt32","","",2,null],[13,"UInt64","","",2,null],[13,"Int","","",2,null],[13,"Int8","","",2,null],[13,"Int16","","",2,null],[13,"Int32","","",2,null],[13,"Int64","","",2,null],[13,"Float","","",2,null],[13,"Float16","","",2,null],[13,"Float32","","",2,null],[13,"Float64","","",2,null],[13,"Bytes","","",2,null],[13,"Unicode","","",2,null],[13,"Array","","",2,null],[13,"Map","","",2,null],[13,"Tag","","",2,null],[13,"Any","","",2,null],[13,"Null","","",2,null],[13,"Undefined","","",2,null],[13,"Bool","","",2,null],[13,"Break","","",2,null],[4,"Cbor","","CBOR abstract syntax.",null,null],[13,"Break","","A code used to signify the end of an indefinite length data item.",3,null],[13,"Undefined","","An undefined data item (major type 7, value 23).",3,null],[13,"Null","","A null data item (major type 7, value 22).",3,null],[13,"Bool","","A boolean data item (major type 7, values 20 or 21).",3,null],[13,"Unsigned","","An unsigned integer (major type 0).",3,null],[13,"Signed","","A negative integer (major type 1).",3,null],[13,"Float","","An IEEE 754 floating point number (major type 7).",3,null],[13,"Bytes","","A byte string (major type 2).",3,null],[13,"Unicode","","A Unicode string (major type 3).",3,null],[13,"Array","","An array (major type 4).",3,null],[13,"Map","","A map (major type 5).",3,null],[13,"Tag","","A tag (major type 6).",3,null],[4,"CborUnsigned","","An unsigned integer (major type 0).",null,null],[13,"UInt8","","Unsigned 8 bit integer.",4,null],[13,"UInt16","","Unsigned 16 bit integer.",4,null],[13,"UInt32","","Unsigned 32 bit integer.",4,null],[13,"UInt64","","Unsigned 64 bit integer.",4,null],[4,"CborSigned","","A negative integer (major type 1).",null,null],[13,"Int8","","Negative 8 bit integer.",5,null],[13,"Int16","","Negative 16 bit integer.",5,null],[13,"Int32","","Negative 32 bit integer.",5,null],[13,"Int64","","Negative 64 bit integer.",5,null],[4,"CborFloat","","An IEEE 754 floating point number (major type 7).",null,null],[13,"Float16","","IEEE 754 half-precision float.",6,null],[13,"Float32","","IEEE 754 single-precision float.",6,null],[13,"Float64","","IEEE 754 double-precision float.",6,null],[4,"CborError","","Errors that can be produced by a CBOR operation.",null,null],[13,"Io","","An error as a result of an underlying IO operation.",7,null],[13,"Decode","","An error from the type based decoder.",7,null],[13,"Encode","","An error from the type based encoder.",7,null],[13,"AtOffset","","An error reading CBOR at a particular offset.",7,null],[12,"kind","cbor::CborError","The exact read error.",7,null],[12,"offset","","The byte offset at which the error occurred.",7,null],[13,"UnexpectedEOF","cbor","EOF is found but more bytes were expected to decode the next data item.",7,null],[4,"ReadError","","An error produced by reading CBOR data.",null,null],[13,"TypeMismatch","","An error for when the expected type does not match the received type.",8,null],[12,"expected","cbor::ReadError","Expected CBOR type.",8,null],[12,"got","","Received CBOR type.",8,null],[13,"InvalidAddValue","cbor","When the additional information is inconsistent with the major type.",8,null],[12,"ty","cbor::ReadError","CBOR type.",8,null],[12,"val","","Additional information value.",8,null],[13,"Unassigned","cbor","The value found is unassigned.",8,null],[12,"major","cbor::ReadError","CBOR major type value.",8,null],[12,"add","","Additional information value.",8,null],[13,"Reserved","cbor","The value found is reserved.",8,null],[12,"major","cbor::ReadError","CBOR major type value.",8,null],[12,"add","","Additional information value.",8,null],[13,"Other","cbor","Some other error occurred.",8,null],[4,"WriteError","","An error produced by writing CBOR data.",null,null],[13,"InvalidMapKey","","Occurs when writing a map key that isn't a Unicode string.",9,null],[12,"got","cbor::WriteError","The received type (if that information is available).",9,null],[11,"from_reader","cbor","Create a new CBOR decoder from the underlying reader.",10,{"inputs":[{"name":"r"}],"output":{"name":"decoder"}}],[11,"decode","","Decode a sequence of top-level CBOR data items into Rust values.",10,null],[11,"items","","Read a sequence of top-level CBOR data items.",10,null],[11,"from_bytes","","Create a new CBOR decoder that reads from the buffer given.",10,{"inputs":[{"name":"t"}],"output":{"name":"decoder"}}],[11,"next","","",11,null],[11,"next","","",12,null],[11,"from_writer","","Encode CBOR to an arbitrary writer.",13,{"inputs":[{"name":"w"}],"output":{"name":"encoder"}}],[11,"encode","","Encode an iterator of Rust values to CBOR in the underlying writer.",13,null],[11,"flush","","Flush the underlying writer.",13,null],[11,"from_memory","","Encode CBOR to an in memory buffer.",13,{"inputs":[],"output":{"name":"encoder"}}],[11,"as_bytes","","Flush and retrieve the CBOR bytes that have been written.",13,null],[11,"into_bytes","","Flush and retrieve the CBOR bytes that have been written without\ncopying.",13,null],[11,"emit_nil","","",13,null],[11,"emit_usize","","",13,null],[11,"emit_u64","","",13,null],[11,"emit_u32","","",13,null],[11,"emit_u16","","",13,null],[11,"emit_u8","","",13,null],[11,"emit_isize","","",13,null],[11,"emit_i64","","",13,null],[11,"emit_i32","","",13,null],[11,"emit_i16","","",13,null],[11,"emit_i8","","",13,null],[11,"emit_f64","","",13,null],[11,"emit_f32","","",13,null],[11,"emit_bool","","",13,null],[11,"emit_char","","",13,null],[11,"emit_str","","",13,null],[11,"emit_enum","","",13,null],[11,"emit_enum_variant","","",13,null],[11,"emit_enum_variant_arg","","",13,null],[11,"emit_enum_struct_variant","","",13,null],[11,"emit_enum_struct_variant_field","","",13,null],[11,"emit_struct","","",13,null],[11,"emit_struct_field","","",13,null],[11,"emit_tuple","","",13,null],[11,"emit_tuple_arg","","",13,null],[11,"emit_tuple_struct","","",13,null],[11,"emit_tuple_struct_arg","","",13,null],[11,"emit_option","","",13,null],[11,"emit_option_none","","",13,null],[11,"emit_option_some","","",13,null],[11,"emit_seq","","",13,null],[11,"emit_seq_elt","","",13,null],[11,"emit_map","","",13,null],[11,"emit_map_elt_key","","",13,null],[11,"emit_map_elt_val","","",13,null],[11,"to_json","","",3,null],[11,"from_bytes","","Create a new CBOR decoder that reads from the buffer given.",14,{"inputs":[{"name":"t"}],"output":{"name":"cbordecoder"}}],[11,"from_reader","","Create a new CBOR decoder that reads from the reader given.",14,{"inputs":[{"name":"r"}],"output":{"name":"cbordecoder"}}],[11,"error","","",14,null],[11,"read_nil","","",14,null],[11,"read_usize","","",14,null],[11,"read_u64","","",14,null],[11,"read_u32","","",14,null],[11,"read_u16","","",14,null],[11,"read_u8","","",14,null],[11,"read_isize","","",14,null],[11,"read_i64","","",14,null],[11,"read_i32","","",14,null],[11,"read_i16","","",14,null],[11,"read_i8","","",14,null],[11,"read_bool","","",14,null],[11,"read_f64","","",14,null],[11,"read_f32","","",14,null],[11,"read_char","","",14,null],[11,"read_str","","",14,null],[11,"read_enum","","",14,null],[11,"read_enum_variant","","",14,null],[11,"read_enum_variant_arg","","",14,null],[11,"read_enum_struct_variant","","",14,null],[11,"read_enum_struct_variant_field","","",14,null],[11,"read_struct","","",14,null],[11,"read_struct_field","","",14,null],[11,"read_tuple","","",14,null],[11,"read_tuple_arg","","",14,null],[11,"read_tuple_struct","","",14,null],[11,"read_tuple_struct_arg","","",14,null],[11,"read_option","","",14,null],[11,"read_seq","","",14,null],[11,"read_seq_elt","","",14,null],[11,"read_map","","",14,null],[11,"read_map_elt_key","","",14,null],[11,"read_map_elt_val","","",14,null],[6,"CborResult","","Type synonym for `Result<T, CborError>`.",null,null],[8,"ToCbor","","A trait for converting values to CBOR.",null,null],[10,"to_cbor","","Return a CBOR representation of `self`.",15,null],[11,"eq","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"decode","","",4,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"partial_cmp","","",4,null],[11,"lt","","",4,null],[11,"le","","",4,null],[11,"gt","","",4,null],[11,"ge","","",4,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"cmp","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"decode","","",5,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[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,"cmp","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"decode","","",6,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[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","","",6,null],[11,"encode","","",0,null],[11,"partial_cmp","","",0,null],[11,"lt","","",0,null],[11,"le","","",0,null],[11,"gt","","",0,null],[11,"ge","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"cmp","","",0,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"encode","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"encode","","",16,null],[11,"eq","","",16,null],[11,"ne","","",16,null],[11,"fmt","","",16,null],[11,"clone","","",16,null],[11,"new","","Create a new value that is encodable as a CBOR tag.",16,{"inputs":[{"name":"u64"},{"name":"t"}],"output":{"name":"cbortagencode"}}],[11,"decode","","Decode a single CBOR value.",3,null],[11,"tag","","If this is a CBOR tag, return the tag number.",3,null],[11,"into_u64","","Return the underlying value as a `u64`.",4,null],[11,"into_i64","","Return the underlying value as a `i64`.",5,null],[11,"into_f64","","Return the underlying value as a `f64`.",6,null],[11,"encode","","",3,null],[11,"encode","","",4,null],[11,"encode","","",5,null],[11,"encode","","",6,null],[11,"deref","","",0,null],[11,"deref_mut","","",0,null],[11,"decode","","",0,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"fmt","","",7,null],[11,"fmt","","",8,null],[11,"clone","","",8,null],[11,"fmt","","",9,null],[11,"clone","","",9,null],[11,"from","","",7,{"inputs":[{"name":"error"}],"output":{"name":"cborerror"}}],[11,"from","","",7,{"inputs":[{"name":"error"}],"output":{"name":"cborerror"}}],[11,"description","","",7,null],[11,"cause","","",7,null],[11,"fmt","","",7,null],[11,"fmt","","",8,null],[11,"fmt","","",9,null]],"paths":[[3,"CborBytes"],[3,"CborTag"],[4,"Type"],[4,"Cbor"],[4,"CborUnsigned"],[4,"CborSigned"],[4,"CborFloat"],[4,"CborError"],[4,"ReadError"],[4,"WriteError"],[3,"Decoder"],[3,"DecodedItems"],[3,"Items"],[3,"Encoder"],[3,"DirectDecoder"],[8,"ToCbor"],[3,"CborTagEncode"]]}; initSearch(searchIndex);