var searchIndex = {}; searchIndex["serde_cbor"] = {"doc":"CBOR and serialization.","items":[[0,"de","serde_cbor","CBOR deserialization.",null,null],[3,"Deserializer","serde_cbor::de","A structure that deserializes CBOR into Rust values.",null,null],[5,"from_reader","","Decodes a CBOR value from a `std::io::Read`.",null,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[5,"from_slice","","Decodes a CBOR value from a `&[u8]` slice.",null,null],[11,"new","","Creates the CBOR parser from an `std::io::Read`.",0,{"inputs":[{"name":"r"}],"output":{"name":"deserializer"}}],[11,"end","","The `Deserializer::end` method should be called after a value has been fully deserialized.\nThis allows the `Deserializer` to validate that the input stream is at the end.",0,null],[11,"deserialize","","",0,null],[11,"read","","",0,null],[0,"error","serde_cbor","CBOR errors.",null,null],[4,"Error","serde_cbor::error","Represents all possible errors that can occur when serializing or deserializing a value.",null,null],[13,"Syntax","","The CBOR value had a syntactic error.",1,null],[13,"Io","","Some IO error occured when processing a value.",1,null],[13,"FromUtf8","","Some error occured while converting a string.",1,null],[13,"Custom","","A custom error provided by serde occured.",1,null],[13,"Eof","","The data source contains not enough bytes to parse a value.",1,null],[13,"StopCode","","Break stop code encountered.",1,null],[13,"TrailingBytes","","The data source contains trailing bytes after all values were read.",1,null],[6,"Result","","Helper alias for Result objects that return a JSON Error.",null,null],[11,"fmt","","",1,null],[11,"description","","",1,null],[11,"cause","","",1,null],[11,"fmt","","",1,null],[11,"from","","",1,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"byteordererror"}],"output":{"name":"error"}}],[11,"custom","","",1,{"inputs":[{"name":"t"}],"output":{"name":"error"}}],[11,"end_of_stream","","",1,{"inputs":[],"output":{"name":"error"}}],[11,"custom","","",1,{"inputs":[{"name":"t"}],"output":{"name":"error"}}],[0,"ser","serde_cbor","CBOR serializisation.",null,null],[3,"Serializer","serde_cbor::ser","A structure for serializing Rust values into CBOR.",null,null],[5,"to_writer","","Encodes the specified struct into a writer.",null,{"inputs":[{"name":"w"},{"name":"t"}],"output":{"name":"result"}}],[5,"to_writer_sd","","Encodes the specified struct into a writer with a leading self-describe tag.",null,{"inputs":[{"name":"w"},{"name":"t"}],"output":{"name":"result"}}],[5,"to_vec","","Encodes the specified struct into a `Vec<u8>`.",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[5,"to_vec_sd","","Encodes the specified struct into a `Vec<u8>` with a leading self-describe tag.",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[11,"new","","Creates a new CBOR serializer.",2,{"inputs":[{"name":"w"}],"output":{"name":"serializer"}}],[11,"serialize_bool","","",2,null],[11,"serialize_i64","","",2,null],[11,"serialize_u64","","",2,null],[11,"serialize_f64","","",2,null],[11,"serialize_str","","",2,null],[11,"serialize_unit","","",2,null],[11,"serialize_none","","",2,null],[11,"serialize_some","","",2,null],[11,"serialize_seq","","",2,null],[11,"serialize_seq_elt","","",2,null],[11,"serialize_map","","",2,null],[11,"serialize_map_elt","","",2,null],[0,"value","serde_cbor","CBOR values and keys.",null,null],[4,"Value","serde_cbor::value","An enum over all possible CBOR types.",null,null],[13,"U64","","Represents an unsigned integer.",3,null],[13,"I64","","Represents a signed integer.",3,null],[13,"Bytes","","Represents a byte string.",3,null],[13,"String","","Represents an UTF-8 string.",3,null],[13,"Array","","Represents a list.",3,null],[13,"Object","","Represents a map.",3,null],[13,"F64","","Represents a floating point value.",3,null],[13,"Bool","","Represents a boolean value.",3,null],[13,"Null","","Represents the absence of a value or the value undefined.",3,null],[4,"ObjectKey","","A simplified CBOR value containing only types useful for keys.",null,null],[13,"Integer","","An integer.",4,null],[13,"Bytes","","A byte string.",4,null],[13,"String","","An UTF-8 string.",4,null],[13,"Bool","","A boolean value.",4,null],[13,"Null","","No value.",4,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"is_object","","Returns true if the value is an object.",3,null],[11,"as_object","","If the value is an object, returns the associated BTreeMap. Returns None otherwise.",3,null],[11,"as_object_mut","","If the value is an object, returns the associated mutable BTreeMap. Returns None otherwise.",3,null],[11,"is_array","","Returns true if the value is an array.",3,null],[11,"as_array","","If the value is an array, returns the associated Vec. Returns None otherwise.",3,null],[11,"as_array_mut","","If the value is an array, returns the associated mutable Vec. Returns None otherwise.",3,null],[11,"is_bytes","","Returns true if the value is a byte string.",3,null],[11,"as_bytes","","Returns the associated byte string or `None` if the value has a different type.",3,null],[11,"as_bytes_mut","","Returns the associated mutable byte string or `None` if the value has a different type.",3,null],[11,"is_string","","Returns true if the value is a string.",3,null],[11,"as_string","","Returns the associated string or `None` if the value has a different type.",3,null],[11,"as_string_mut","","Returns the associated mutable string or `None` if the value has a different type.",3,null],[11,"is_number","","Retrns true if the value is a number.",3,null],[11,"is_i64","","Returns true if the `Value` is a i64. Returns false otherwise.",3,null],[11,"is_u64","","Returns true if the `Value` is a u64. Returns false otherwise.",3,null],[11,"is_f64","","Returns true if the `Value` is a f64. Returns false otherwise.",3,null],[11,"as_i64","","If the `Value` is a number, return or cast it to a i64. Returns None otherwise.",3,null],[11,"as_u64","","If the `Value` is a number, return or cast it to a u64. Returns None otherwise.",3,null],[11,"as_f64","","If the `Value` is a number, return or cast it to a f64. Returns None otherwise.",3,null],[11,"is_boolean","","Returns true if the value is a boolean.",3,null],[11,"as_boolean","","If the value is a Boolean, returns the associated bool. Returns None otherwise.",3,null],[11,"is_null","","Returns true if the value is a Null. Returns false otherwise.",3,null],[11,"as_null","","If the value is a Null, returns (). Returns None otherwise.",3,null],[11,"deserialize","","",3,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"serialize","","",3,null],[11,"hash","","",4,null],[11,"cmp","","",4,null],[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,"fmt","","",4,null],[11,"clone","","",4,null],[11,"is_bytes","","Returns true if the ObjectKey is a byte string.",4,null],[11,"as_bytes","","Returns the associated byte string or `None` if the ObjectKey has a different type.",4,null],[11,"as_bytes_mut","","Returns the associated mutable byte string or `None` if the ObjectKey has a different type.",4,null],[11,"is_string","","Returns true if the ObjectKey is a string.",4,null],[11,"as_string","","Returns the associated string or `None` if the *ObjectKey` has a different type.",4,null],[11,"as_string_mut","","Returns the associated mutable string or `None` if the `ObjectKey` has a different type.",4,null],[11,"is_number","","Retrns true if the `ObjectKey` is a number.",4,null],[11,"as_i64","","If the `ObjectKey` is a number, return or cast it to a i64. Returns None otherwise.",4,null],[11,"as_u64","","If the `ObjectKey` is a number, return or cast it to a u64. Returns None otherwise.",4,null],[11,"is_boolean","","Returns true if the ObjectKey is a boolean.",4,null],[11,"as_boolean","","If the ObjectKey is a Boolean, returns the associated bool. Returns None otherwise.",4,null],[11,"is_null","","Returns true if the ObjectKey is a Null. Returns false otherwise.",4,null],[11,"as_null","","If the ObjectKey is a Null, returns (). Returns None otherwise.",4,null],[11,"deserialize","","",4,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"serialize","","",4,null],[11,"from","","",3,{"inputs":[{"name":"objectkey"}],"output":{"name":"value"}}],[11,"from","","",4,{"inputs":[{"name":"value"}],"output":{"name":"objectkey"}}]],"paths":[[3,"Deserializer"],[4,"Error"],[3,"Serializer"],[4,"Value"],[4,"ObjectKey"]]}; initSearch(searchIndex);