Struct cbor_tools::Map [−][src]
pub struct Map(_);
Expand description
An map of (key, value) pairs.
In CBOR, each key and value may be of different types.
Use Map::from()
to construct a map.
let map_pairs = vec![(1, 2), (3, 4)];
let map = Map::from(map_pairs);
assert_eq!(CborType::from(map).encode(), vec![0xa2, 1, 2, 3, 4]);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Map
impl UnwindSafe for Map
Blanket Implementations
Mutably borrows from an owned value. Read more