[−][src]Crate cbor_diag
A crate for parsing data encoded in Concise Binary Object Representation (CBOR) (in any of raw binary, hex encoded (with comments) or diagnostic notation) then printing it out in either annotated hex form or diagnostic notation. While doing so as much of the structured data as possible is retained to improve the debugging experience. The primary intention of this crate is to be used in diagnostic tools working with CBOR data.
Structs
ByteString | A string of raw bytes with no direct attached meaning. |
Simple | A "simple value" data item. |
Tag | A semantic tag for a CBOR data item. |
TextString | A UTF-8 encoded text string. |
Enums
DataItem | A CBOR data item. |
Error | |
FloatWidth | How many additional bytes are used to encode this float (in bits). |
IntegerWidth | How many additional bytes are used to encode this integer (in bits). |
Functions
parse_bytes | Parse a string containing a binary encoded CBOR data item. |
parse_diag | Parse a string containing a diagnostic notation encoded CBOR data item. |
parse_hex | Parse a string containing a hex encoded CBOR data item. |
Type Definitions
Result |