pub fn compose_dcbor_array(array: &[&str]) -> Result<CBOR>Expand description
Composes a dCBOR array from a slice of string slices, and returns a CBOR object representing the array.
Each string slice is parsed as a dCBOR item.
ยงExample
let cbor = compose_dcbor_array(&["1", "2", "3"]).unwrap();
assert_eq!(cbor.diagnostic(), "[1, 2, 3]");