Searched refs:to_unexpected_item_error (Results 1 – 1 of 1) sorted by relevance
/packages/modules/Virtualization/libs/cborutil/src/ |
D | lib.rs | 56 v.into_array().map_err(|e| to_unexpected_item_error(&e, "array", context)) in value_to_array() 61 v.into_text().map_err(|e| to_unexpected_item_error(&e, "tstr", context)) in value_to_text() 66 v.into_map().map_err(|e| to_unexpected_item_error(&e, "map", context)) in value_to_map() 71 let num = v.into_integer().map_err(|e| to_unexpected_item_error(&e, "int", context))?; in value_to_num() 89 v.into_bytes().map_err(|e| to_unexpected_item_error(&e, "bstr", context)) in value_to_bytes() 94 pub fn to_unexpected_item_error( in to_unexpected_item_error() function 125 to_unexpected_item_error(v, "bstr", "Get label value in CoseKey as bytes") in get_label_value_as_bytes()
|