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,"visit","","",0,null],[11,"format","","",0,{"inputs":[],"output":{"name":"str"}}],[11,"read","","",0,null],[0,"error","serde_cbor","CBOR errors.",null,null],[4,"ErrorCode","serde_cbor::error","The errors that can arise while parsing a CBOR stream.",null,null],[13,"TrailingBytes","","The data source contains trailing bytes after all values were read.",1,null],[13,"UnexpectedEOF","","The data source contains not enough bytes to parse a value.",1,null],[13,"StopCode","","Break stop code encountered.",1,null],[13,"TooLarge","","Too large sequence or map.",1,null],[13,"UnknownByte","","Invalid Byte at the beginning of a new value detected.",1,null],[13,"UnknownField","","Unknown field in struct.",1,null],[13,"MissingField","","Struct is missing a field.",1,null],[13,"InvalidSyntax","","General error required by serde.",1,null],[4,"Error","","Represents all possible errors that can occur when serializing or deserializing a value.",null,null],[13,"SyntaxError","","The CBOR value had a syntactic error.",2,null],[13,"IoError","","Some IO error occured when processing a value.",2,null],[13,"FromUtf8Error","","Some error occured while converting a string.",2,null],[6,"Result","","Helper alias for Result objects that return a JSON Error.",null,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"fmt","","",2,null],[11,"description","","",2,null],[11,"cause","","",2,null],[11,"fmt","","",2,null],[11,"from","","",2,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",2,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"from","","",2,{"inputs":[{"name":"byteordererror"}],"output":{"name":"error"}}],[11,"syntax","","",2,{"inputs":[{"name":"str"}],"output":{"name":"error"}}],[11,"end_of_stream","","",2,{"inputs":[],"output":{"name":"error"}}],[11,"unknown_field","","",2,{"inputs":[{"name":"str"}],"output":{"name":"error"}}],[11,"missing_field","","",2,{"inputs":[{"name":"str"}],"output":{"name":"error"}}],[0,"read","serde_cbor","CBOR special reader.",null,null],[3,"PositionReader","serde_cbor::read","Reader that tracks the current position of the undelying readable object in bytes.",null,null],[11,"new","","Constructs a new `PositionReader<R>`",3,{"inputs":[{"name":"r"}],"output":{"name":"positionreader"}}],[11,"position","","Gives the current position in bytes.",3,null],[11,"get_ref","","Gets a reference to the underlying reader.",3,null],[11,"get_mut","","Gets a mutable reference to the underlying reader.",3,null],[11,"into_inner","","Gets the underlying reader.",3,null],[11,"read_bytes","","Reads the given number of bytes from this Reader and returns a `Vec<u8>`.",3,null],[11,"read","","",3,null],[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.",4,{"inputs":[{"name":"w"}],"output":{"name":"serializer"}}],[11,"visit_bool","","",4,null],[11,"visit_i64","","",4,null],[11,"visit_u64","","",4,null],[11,"visit_f64","","",4,null],[11,"visit_str","","",4,null],[11,"visit_unit","","",4,null],[11,"visit_none","","",4,null],[11,"visit_some","","",4,null],[11,"visit_seq","","",4,null],[11,"visit_seq_elt","","",4,null],[11,"visit_map","","",4,null],[11,"visit_map_elt","","",4,null],[11,"format","","",4,{"inputs":[],"output":{"name":"str"}}],[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.",5,null],[13,"I64","","Represents a signed integer.",5,null],[13,"Bytes","","Represents a byte string.",5,null],[13,"String","","Represents an UTF-8 string.",5,null],[13,"Array","","Represents a list.",5,null],[13,"Object","","Represents a map.",5,null],[13,"F64","","Represents a floating point value.",5,null],[13,"Bool","","Represents a boolean value.",5,null],[13,"Null","","Represents the absence of a value or the value undefined.",5,null],[4,"ObjectKey","","A simplified CBOR value containing only types useful for keys.",null,null],[13,"Integer","","An integer.",6,null],[13,"Bytes","","A byte string.",6,null],[13,"String","","An UTF-8 string.",6,null],[13,"Bool","","A boolean value.",6,null],[13,"Null","","No value.",6,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"is_object","","Returns true if the value is an object.",5,null],[11,"as_object","","If the value is an object, returns the associated BTreeMap. Returns None otherwise.",5,null],[11,"as_object_mut","","If the value is an object, returns the associated mutable BTreeMap. Returns None otherwise.",5,null],[11,"is_array","","Returns true if the value is an array.",5,null],[11,"as_array","","If the value is an array, returns the associated Vec. Returns None otherwise.",5,null],[11,"as_array_mut","","If the value is an array, returns the associated mutable Vec. Returns None otherwise.",5,null],[11,"is_bytes","","Returns true if the value is a byte string.",5,null],[11,"as_bytes","","Returns the associated byte string or `None` if the value has a different type.",5,null],[11,"as_bytes_mut","","Returns the associated mutable byte string or `None` if the value has a different type.",5,null],[11,"is_string","","Returns true if the value is a string.",5,null],[11,"as_string","","Returns the associated string or `None` if the value has a different type.",5,null],[11,"as_string_mut","","Returns the associated mutable string or `None` if the value has a different type.",5,null],[11,"is_number","","Retrns true if the value is a number.",5,null],[11,"is_i64","","Returns true if the `Value` is a i64. Returns false otherwise.",5,null],[11,"is_u64","","Returns true if the `Value` is a u64. Returns false otherwise.",5,null],[11,"is_f64","","Returns true if the `Value` is a f64. Returns false otherwise.",5,null],[11,"as_i64","","If the `Value` is a number, return or cast it to a i64. Returns None otherwise.",5,null],[11,"as_u64","","If the `Value` is a number, return or cast it to a u64. Returns None otherwise.",5,null],[11,"as_f64","","If the `Value` is a number, return or cast it to a f64. Returns None otherwise.",5,null],[11,"is_boolean","","Returns true if the value is a boolean.",5,null],[11,"as_boolean","","If the value is a Boolean, returns the associated bool. Returns None otherwise.",5,null],[11,"is_null","","Returns true if the value is a Null. Returns false otherwise.",5,null],[11,"as_null","","If the value is a Null, returns (). Returns None otherwise.",5,null],[11,"deserialize","","",5,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"serialize","","",5,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","","",6,null],[11,"is_bytes","","Returns true if the ObjectKey is a byte string.",6,null],[11,"as_bytes","","Returns the associated byte string or `None` if the ObjectKey has a different type.",6,null],[11,"as_bytes_mut","","Returns the associated mutable byte string or `None` if the ObjectKey has a different type.",6,null],[11,"is_string","","Returns true if the ObjectKey is a string.",6,null],[11,"as_string","","Returns the associated string or `None` if the *ObjectKey` has a different type.",6,null],[11,"as_string_mut","","Returns the associated mutable string or `None` if the `ObjectKey` has a different type.",6,null],[11,"is_number","","Retrns true if the `ObjectKey` is a number.",6,null],[11,"as_i64","","If the `ObjectKey` is a number, return or cast it to a i64. Returns None otherwise.",6,null],[11,"as_u64","","If the `ObjectKey` is a number, return or cast it to a u64. Returns None otherwise.",6,null],[11,"is_boolean","","Returns true if the ObjectKey is a boolean.",6,null],[11,"as_boolean","","If the ObjectKey is a Boolean, returns the associated bool. Returns None otherwise.",6,null],[11,"is_null","","Returns true if the ObjectKey is a Null. Returns false otherwise.",6,null],[11,"as_null","","If the ObjectKey is a Null, returns (). Returns None otherwise.",6,null],[11,"deserialize","","",6,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"serialize","","",6,null],[11,"from","","",5,{"inputs":[{"name":"objectkey"}],"output":{"name":"value"}}],[11,"from","","",6,{"inputs":[{"name":"value"}],"output":{"name":"objectkey"}}]],"paths":[[3,"Deserializer"],[4,"ErrorCode"],[4,"Error"],[3,"PositionReader"],[3,"Serializer"],[4,"Value"],[4,"ObjectKey"]]}; initSearch(searchIndex);