Lines Matching refs:v
68 let mut v = alloc::vec::Vec::new(); in vec_try_fill_with_alloc_err() localVariable
69 v.try_reserve(len).map_err(|_e| alloc_err())?; in vec_try_fill_with_alloc_err()
70 v.resize(len, elem); in vec_try_fill_with_alloc_err()
71 Ok(v) in vec_try_fill_with_alloc_err()
83 let mut v = alloc::vec::Vec::new(); in vec_try4_with_alloc_err() localVariable
84 match v.try_reserve(4) { in vec_try4_with_alloc_err()
87 v.push(x1); in vec_try4_with_alloc_err()
88 v.push(x2); in vec_try4_with_alloc_err()
89 v.push(x3); in vec_try4_with_alloc_err()
90 v.push(x4); in vec_try4_with_alloc_err()
91 Ok(v) in vec_try4_with_alloc_err()
104 let mut v = alloc::vec::Vec::new(); in vec_try3_with_alloc_err() localVariable
105 match v.try_reserve(3) { in vec_try3_with_alloc_err()
108 v.push(x1); in vec_try3_with_alloc_err()
109 v.push(x2); in vec_try3_with_alloc_err()
110 v.push(x3); in vec_try3_with_alloc_err()
111 Ok(v) in vec_try3_with_alloc_err()
122 let mut v = alloc::vec::Vec::new(); in vec_try2_with_alloc_err() localVariable
123 match v.try_reserve(2) { in vec_try2_with_alloc_err()
126 v.push(x1); in vec_try2_with_alloc_err()
127 v.push(x2); in vec_try2_with_alloc_err()
128 Ok(v) in vec_try2_with_alloc_err()
135 let mut v = alloc::vec::Vec::new(); in vec_try1_with_alloc_err() localVariable
136 match v.try_reserve(1) { in vec_try1_with_alloc_err()
139 v.push(x1); in vec_try1_with_alloc_err()
140 Ok(v) in vec_try1_with_alloc_err()
196 cbor::de::Error::Syntax(v) => cbor::de::Error::Syntax(v), in into()
248 cbor::de::Error::Syntax(v) => cbor::de::Error::Syntax(v), in from()
417 let values: Result<Vec<_>, _> = self.into_iter().map(|v| v.to_cbor_value()).collect(); in to_cbor_value()
454 let mut v = alloc::vec::Vec::new(); in to_cbor_value() localVariable
455 if v.try_reserve(self.len()).is_err() { in to_cbor_value()
458 v.extend_from_slice(&self); in to_cbor_value()
459 Ok(cbor::value::Value::Bytes(v)) in to_cbor_value()
490 v => crate::cbor_type_error(&v, "u64"), in from_cbor_value()
509 v => crate::cbor_type_error(&v, "i64"), in from_cbor_value()
528 v => crate::cbor_type_error(&v, "u32"), in from_cbor_value()
545 v => crate::cbor_type_error(&v, "bool"), in from_cbor_value()
561 v => crate::cbor_type_error(&v, "null"), in from_cbor_value()
579 v => crate::cbor_type_error(&v, "i64"), in from_cbor_value()