Skip to main content

array

Macro array 

Source
macro_rules! array {
    ($($x:expr),* $(,)?) => { ... };
}
Expand description

Construct a CBOR array from a list of expressions.

Each element is converted into a Value.

let v = array![1, "hello", true];
assert!(v.data_type().is_array());