Macro oasis_cbor::cbor_array
source · macro_rules! cbor_array {
( $( $value:expr, )+ ) => { ... };
( $( $value:expr ),* ) => { ... };
}
Expand description
Creates a CBOR Value of type Array with the given elements.
Elements are expressions and converted into CBOR Values. Elements are comma-separated.
Example usage:
let array = cbor_array![1, "2"];