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_bool","","",0,null],[11,"deserialize_isize","","",0,null],[11,"deserialize_i8","","",0,null],[11,"deserialize_i16","","",0,null],[11,"deserialize_i32","","",0,null],[11,"deserialize_i64","","",0,null],[11,"deserialize_usize","","",0,null],[11,"deserialize_u8","","",0,null],[11,"deserialize_u16","","",0,null],[11,"deserialize_u32","","",0,null],[11,"deserialize_u64","","",0,null],[11,"deserialize_f32","","",0,null],[11,"deserialize_f64","","",0,null],[11,"deserialize_char","","",0,null],[11,"deserialize_str","","",0,null],[11,"deserialize_string","","",0,null],[11,"deserialize_unit","","",0,null],[11,"deserialize_seq","","",0,null],[11,"deserialize_bytes","","",0,null],[11,"deserialize_map","","",0,null],[11,"deserialize_struct_field","","",0,null],[11,"deserialize_ignored_any","","",0,null],[11,"deserialize","","",0,null],[11,"deserialize_option","","",0,null],[11,"deserialize_newtype_struct","","",0,null],[11,"deserialize_enum","","",0,null],[11,"deserialize_seq_fixed_size","","",0,null],[11,"deserialize_unit_struct","","",0,null],[11,"deserialize_struct","","",0,null],[11,"deserialize_tuple_struct","","",0,null],[11,"deserialize_tuple","","",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,"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],[3,"StructState","","Structs are record types. They are serialized as key value pairs.",null,null],[4,"CollectionState","","A collection like an array or map may have a fixed or indefinite length.",null,null],[13,"Fixed","","Fixed collections end after all elements were serialized.",2,null],[13,"Indefinite","","Indefinite collections are terminated by a stop code after the last element.",2,null],[5,"to_writer","","Serializes a value to a writer.",null,{"inputs":[{"name":"w"},{"name":"t"}],"output":{"name":"result"}}],[5,"to_writer_sd","","Serializes a value to a writer and add a CBOR self-describe tag.",null,{"inputs":[{"name":"w"},{"name":"t"}],"output":{"name":"result"}}],[5,"to_writer_packed","","Serializes a value without names to a writer.",null,{"inputs":[{"name":"w"},{"name":"t"}],"output":{"name":"result"}}],[5,"to_writer_packed_sd","","Serializes a value without names to a writer and add a CBOR self-describe tag.",null,{"inputs":[{"name":"w"},{"name":"t"}],"output":{"name":"result"}}],[5,"to_vec","","Serializes a value to a vector.",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[5,"to_vec_sd","","Serializes a value to a vector and add a CBOR self-describe tag.",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[5,"to_vec_packed","","Serializes a value without names to a vector.",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[5,"to_vec_packed_sd","","Serializes a value without names to a vector and add a CBOR self-describe tag.",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[11,"new","","Creates a new CBOR serializer.",3,{"inputs":[{"name":"w"}],"output":{"name":"serializer"}}],[11,"packed","","Creates a new packed CBOR serializer.",3,{"inputs":[{"name":"w"}],"output":{"name":"serializer"}}],[11,"self_describe","","Writes the CBOR self-describe tag to the stream.",3,null],[11,"serialize_bool","","",3,null],[11,"serialize_isize","","",3,null],[11,"serialize_i8","","",3,null],[11,"serialize_i16","","",3,null],[11,"serialize_i32","","",3,null],[11,"serialize_i64","","",3,null],[11,"serialize_usize","","",3,null],[11,"serialize_u8","","",3,null],[11,"serialize_u16","","",3,null],[11,"serialize_u32","","",3,null],[11,"serialize_u64","","",3,null],[11,"serialize_f32","","",3,null],[11,"serialize_f64","","",3,null],[11,"serialize_char","","",3,null],[11,"serialize_str","","",3,null],[11,"serialize_bytes","","",3,null],[11,"serialize_unit","","",3,null],[11,"serialize_unit_struct","","",3,null],[11,"serialize_unit_variant","","",3,null],[11,"serialize_newtype_struct","","",3,null],[11,"serialize_newtype_variant","","",3,null],[11,"serialize_none","","",3,null],[11,"serialize_some","","",3,null],[11,"serialize_seq","","",3,null],[11,"serialize_seq_elt","","",3,null],[11,"serialize_seq_end","","",3,null],[11,"serialize_seq_fixed_size","","",3,null],[11,"serialize_tuple","","",3,null],[11,"serialize_tuple_elt","","",3,null],[11,"serialize_tuple_end","","",3,null],[11,"serialize_tuple_struct","","",3,null],[11,"serialize_tuple_struct_elt","","",3,null],[11,"serialize_tuple_struct_end","","",3,null],[11,"serialize_tuple_variant","","",3,null],[11,"serialize_tuple_variant_elt","","",3,null],[11,"serialize_tuple_variant_end","","",3,null],[11,"serialize_map","","",3,null],[11,"serialize_map_key","","",3,null],[11,"serialize_map_value","","",3,null],[11,"serialize_map_end","","",3,null],[11,"serialize_struct","","",3,null],[11,"serialize_struct_elt","","",3,null],[11,"serialize_struct_end","","",3,null],[11,"serialize_struct_variant","","",3,null],[11,"serialize_struct_variant_elt","","",3,null],[11,"serialize_struct_variant_end","","",3,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.",4,null],[13,"I64","","Represents a signed integer.",4,null],[13,"Bytes","","Represents a byte string.",4,null],[13,"String","","Represents an UTF-8 string.",4,null],[13,"Array","","Represents a list.",4,null],[13,"Object","","Represents a map.",4,null],[13,"F64","","Represents a floating point value.",4,null],[13,"Bool","","Represents a boolean value.",4,null],[13,"Null","","Represents the absence of a value or the value undefined.",4,null],[4,"ObjectKey","","A simplified CBOR value containing only types useful for keys.",null,null],[13,"Integer","","An integer.",5,null],[13,"Bytes","","A byte string.",5,null],[13,"String","","An UTF-8 string.",5,null],[13,"Bool","","A boolean value.",5,null],[13,"Null","","No value.",5,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"is_object","","Returns true if the value is an object.",4,null],[11,"as_object","","If the value is an object, returns the associated BTreeMap. Returns None otherwise.",4,null],[11,"as_object_mut","","If the value is an object, returns the associated mutable BTreeMap. Returns None otherwise.",4,null],[11,"is_array","","Returns true if the value is an array.",4,null],[11,"as_array","","If the value is an array, returns the associated Vec. Returns None otherwise.",4,null],[11,"as_array_mut","","If the value is an array, returns the associated mutable Vec. Returns None otherwise.",4,null],[11,"is_bytes","","Returns true if the value is a byte string.",4,null],[11,"as_bytes","","Returns the associated byte string or `None` if the value has a different type.",4,null],[11,"as_bytes_mut","","Returns the associated mutable byte string or `None` if the value has a different type.",4,null],[11,"is_string","","Returns true if the value is a string.",4,null],[11,"as_string","","Returns the associated string or `None` if the value has a different type.",4,null],[11,"as_string_mut","","Returns the associated mutable string or `None` if the value has a different type.",4,null],[11,"is_number","","Retrns true if the value is a number.",4,null],[11,"is_i64","","Returns true if the `Value` is a i64. Returns false otherwise.",4,null],[11,"is_u64","","Returns true if the `Value` is a u64. Returns false otherwise.",4,null],[11,"is_f64","","Returns true if the `Value` is a f64. Returns false otherwise.",4,null],[11,"as_i64","","If the `Value` is a number, return or cast it to a i64. Returns None otherwise.",4,null],[11,"as_u64","","If the `Value` is a number, return or cast it to a u64. Returns None otherwise.",4,null],[11,"as_f64","","If the `Value` is a number, return or cast it to a f64. Returns None otherwise.",4,null],[11,"is_boolean","","Returns true if the value is a boolean.",4,null],[11,"as_boolean","","If the value is a Boolean, returns the associated bool. Returns None otherwise.",4,null],[11,"is_null","","Returns true if the value is a Null. Returns false otherwise.",4,null],[11,"as_null","","If the value is a Null, returns (). Returns None otherwise.",4,null],[11,"deserialize","","",4,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"serialize","","",4,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","","",5,null],[11,"is_bytes","","Returns true if the ObjectKey is a byte string.",5,null],[11,"as_bytes","","Returns the associated byte string or `None` if the ObjectKey has a different type.",5,null],[11,"as_bytes_mut","","Returns the associated mutable byte string or `None` if the ObjectKey has a different type.",5,null],[11,"is_string","","Returns true if the ObjectKey is a string.",5,null],[11,"as_string","","Returns the associated string or `None` if the *ObjectKey` has a different type.",5,null],[11,"as_string_mut","","Returns the associated mutable string or `None` if the `ObjectKey` has a different type.",5,null],[11,"is_number","","Retrns true if the `ObjectKey` is a number.",5,null],[11,"as_i64","","If the `ObjectKey` is a number, return or cast it to a i64. Returns None otherwise.",5,null],[11,"as_u64","","If the `ObjectKey` is a number, return or cast it to a u64. Returns None otherwise.",5,null],[11,"is_boolean","","Returns true if the ObjectKey is a boolean.",5,null],[11,"as_boolean","","If the ObjectKey is a Boolean, returns the associated bool. Returns None otherwise.",5,null],[11,"is_null","","Returns true if the ObjectKey is a Null. Returns false otherwise.",5,null],[11,"as_null","","If the ObjectKey is a Null, returns (). Returns None otherwise.",5,null],[11,"deserialize","","",5,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"serialize","","",5,null],[11,"from","","",4,{"inputs":[{"name":"objectkey"}],"output":{"name":"value"}}],[11,"from","","",5,{"inputs":[{"name":"value"}],"output":{"name":"objectkey"}}]],"paths":[[3,"Deserializer"],[4,"Error"],[4,"CollectionState"],[3,"Serializer"],[4,"Value"],[4,"ObjectKey"]]}; initSearch(searchIndex);