Debian Codegraph @

src/value/mod.rs

raw symbols SCIP
1 //! CBOR values, keys and serialization routines.
2
3 mod derust-analyzer cargo serde_cbor_2 0.13.0 value/de/;
4 mod serrust-analyzer cargo serde_cbor_2 0.13.0 value/ser/;
5
6 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/::{Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#, Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#, PartialOrdrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd#};
7 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::collectionsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std collections/::BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#;
8
9 #[doc(inline)]
10 pub use selfrust-analyzer cargo serde_cbor_2 0.13.0 value/::derust-analyzer cargo serde_cbor_2 0.13.0 value/de/::from_valuerust-analyzer cargo serde_cbor_2 0.13.0 value/de/from_value().;
11 #[doc(inline)]
12 pub use selfrust-analyzer cargo serde_cbor_2 0.13.0 value/::serrust-analyzer cargo serde_cbor_2 0.13.0 value/ser/::to_valuerust-analyzer cargo serde_cbor_2 0.13.0 value/ser/to_value().;
13
14 /// The `Value` enum, a loosely typed way of representing any valid CBOR value.
15 ///
16 /// Maps are sorted according to the canonical ordering
17 /// described in [RFC 7049 bis].
18 /// Therefore values are unambiguously serialized
19 /// to a canonical form of CBOR from the same RFC.
20 ///
21 /// [RFC 7049 bis]: https://tools.ietf.org/html/draft-ietf-cbor-7049bis-04#section-2
22 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
23 pub enum Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value# {
24 /// Represents the absence of a value or the value undefined.
25 Nullrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Null#,
26 /// Represents a boolean value.
27 Boolrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bool#(bool),
28 /// Integer CBOR numbers.
29 ///
30 /// The biggest value that can be represented is 2^64 - 1.
31 /// While the smallest value is -2^64.
32 /// Values outside this range can't be serialized
33 /// and will cause an error.
34 Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#(i128),
35 /// Represents a floating point value.
36 Floatrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Float#(f64),
37 /// Represents a byte string.
38 Bytesrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bytes#(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>),
39 /// Represents an UTF-8 encoded string.
40 Textrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Text#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
41 /// Represents an array of values.
42 Arrayrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Array#(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#>),
43 /// Represents a map.
44 ///
45 /// Maps are also called tables, dictionaries, hashes, or objects (in JSON).
46 /// While any value can be used as a CBOR key
47 /// it is better to use only one type of key in a map
48 /// to avoid ambiguity.
49 /// If floating point values are used as keys they are compared bit-by-bit for equality.
50 /// If arrays or maps are used as keys the comparisons
51 /// to establish canonical order may be slow and therefore insertion
52 /// and retrieval of values will be slow too.
53 Maprust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Map#(BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#, Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#>),
54 /// Represents a tagged value
55 Tagrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Tag#(u64, Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#>),
56 // The hidden variant allows the enum to be extended
57 // with variants for tags and simple values.
58 #[doc(hidden)]
59 __Hiddenrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#__Hidden#,
60 }
61
62 impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq# for Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value# {
63 fn eqrust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value][`PartialEq<Self>`]eq().(&self, other: &Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#) -> bool {
64 self.cmprust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value][Ord]cmp().(other) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impl#[Ordering][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impl#[Ordering][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impl#[Ordering][`PartialEq<Self>`]eq().Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Equalrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Equal#
65 }
66 }
67
68 impl Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq# for Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value# {}
69
70 impl PartialOrdrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd# for Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value# {
71 fn partial_cmprust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value][`PartialOrd<Self>`]partial_cmp().(&self, other: &Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#> {
72 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(self.cmprust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value][Ord]cmp().(other))
73 }
74 }
75
76 impl Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord# for Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value# {
77 fn cmprust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value][Ord]cmp().(&self, other: &Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#) -> Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering# {
78 // Determine the canonical order of two values:
79 // 1. Smaller major type sorts first.
80 // 2. Shorter sequence sorts first.
81 // 3. Compare integers by magnitude.
82 // 4. Compare byte and text sequences lexically.
83 // 5. Compare the serializations of both types. (expensive)
84 use selfrust-analyzer cargo serde_cbor_2 0.13.0 value/::Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::*;
85 if self.major_typerust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value]major_type().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]ne().other.major_typerust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value]major_type().() {
86 return self.major_typerust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value]major_type().().cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][Ord]cmp().(&other.major_typerust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value]major_type().());
87 }
88 match (self, other) {
89 (Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#(a), Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#(b)) => a.absrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[i128]abs().().cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i128][Ord]cmp().(&b.absrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[i128]abs().()),
90 (Bytesrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bytes#(a), Bytesrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bytes#(b)) if a.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().b.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() => a.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().().cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][Ord]cmp().(&b.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().()),
91 (Textrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Text#(a), Textrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Text#(b)) if a.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().b.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().() => a.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().().cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][Ord]cmp().(&b.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().()),
92 (Arrayrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Array#(a), Arrayrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Array#(b)) if a.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().b.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() => a.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().().cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][Ord]cmp().(&b.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().()),
93 (Maprust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Map#(a), Maprust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Map#(b)) if a.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().b.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]len().() => a.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]len().().cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][Ord]cmp().(&b.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/impl#[`BTreeMap<K, V, A>`]len().()),
94 (Bytesrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bytes#(a), Bytesrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bytes#(b)) => a.cmprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][Ord]cmp().(b),
95 (Textrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Text#(a), Textrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Text#(b)) => a.cmprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][Ord]cmp().(b),
96 (a, b) => {
97 let a = craterust-analyzer cargo serde_cbor_2 0.13.0 crate/::to_vecrust-analyzer cargo serde_cbor_2 0.13.0 ser/to_vec().(a).expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("self is serializable");
98 let b = craterust-analyzer cargo serde_cbor_2 0.13.0 crate/::to_vecrust-analyzer cargo serde_cbor_2 0.13.0 ser/to_vec().(b).expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("other is serializable");
99 a.cmprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][Ord]cmp().(&b)
100 }
101 }
102 }
103 }
104
105 macro_rules! impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from! {
106 ($variant:path, $for_type:ty) => {
107 impl From<$for_type> for Value {
108 fn from(v: $for_type) -> Value {
109 $variant(v.into())
110 }
111 }
112 };
113 }
114
115 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Boolrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bool#, bool);
116 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#, i8);
117 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#, i16);
118 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#, i32);
119 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#, i64);
120 // i128 omitted because not all numbers fit in CBOR serialization
121 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#, u8);
122 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#, u16);
123 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#, u32);
124 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#, u64);
125 // u128 omitted because not all numbers fit in CBOR serialization
126 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Floatrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Float#, f32);
127 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Floatrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Float#, f64);
128 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Bytesrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bytes#, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>);
129 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Textrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Text#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#);
130 // TODO: figure out if these impls should be more generic or removed.
131 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Arrayrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Array#, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#>);
132 impl_fromrust-analyzer cargo serde_cbor_2 0.13.0 value/impl_from!!(Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::Maprust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Map#, BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#, Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#>);
133
134 impl Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value# {
135 fn major_typerust-analyzer cargo serde_cbor_2 0.13.0 value/impl#[Value]major_type().(&self) -> u8 {
136 use selfrust-analyzer cargo serde_cbor_2 0.13.0 value/::Valuerust-analyzer cargo serde_cbor_2 0.13.0 value/Value#::*;
137 match self {
138 Nullrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Null# => 7,
139 Boolrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bool#(_) => 7,
140 Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#(v) if *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().v rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i128][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i128][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i128][`PartialOrd<Self>`]lt().0 => 1,
141 Integerrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Integer#(_) => 0,
142 Tagrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Tag#(_, _) => 6,
143 Floatrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Float#(_) => 7,
144 Bytesrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Bytes#(_) => 2,
145 Textrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Text#(_) => 3,
146 Arrayrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Array#(_) => 4,
147 Maprust-analyzer cargo serde_cbor_2 0.13.0 value/Value#Map#(_) => 5,
148 __Hiddenrust-analyzer cargo serde_cbor_2 0.13.0 value/Value#__Hidden# => unreachablerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/unreachable!!(),
149 }
150 }
151 }