Struct cbor_tools::Array [−][src]
Expand description
An array of values.
In CBOR, arrays may have members of different types.
Use Array::from()
to construct an array.
let nums = vec![1, 2, 3];
let array = Array::from(nums);
assert_eq!(CborType::from(array).encode(), vec![0x83, 1, 2, 3]);
Tuple Fields
0: Vec<CborType>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Array
impl UnwindSafe for Array
Blanket Implementations
Mutably borrows from an owned value. Read more