1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Utility functions for statistics processing.
// Packages
use StatusCode;
use BuildHasher;
use ;
use ;
// Functions
// serialize_status_codes
/// Returns a list of serialised status code entries and their values.
///
/// This function is used by [`serde`] to serialise a list of status codes and
/// their associated values. It returns the list sorted by status code.
///
/// # Parameters
///
/// * `status_codes` - The status codes to serialise, as keys, against values.
/// * `serializer` - The serialiser to use.
///
/// # Errors
///
/// If there is an error serialising the status codes, an error will be
/// returned.
///