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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! Handling of unknown enum variants
use ;
/// Unknown enum variant from hwloc
///
/// Values of this type represent enum values received from hwloc that
/// `hwlocality` was not built to handle. This can happen when `hwlocality` is
/// built to support a certain minimal hwloc version, but is then linked
/// against a newer hwloc version that defines new enum variants.
///
/// You may freely introspect the contents of these enum values, but are not
/// allowed to generate new ones from Rust integers. This lets `hwlocality`
/// assume that these values are valid inputs that your hwloc version can accept
/// (since it originally emitted them as the output of another query). And
/// therefore you will be able to feed these values back to hwloc in most
/// circumstances.
///
/// This capability to feed back unknown enum values to hwloc may however be
/// restricted in circumstances where hwloc treats enum variants in such a way
/// that sending it an unknown enum variant could result in a memory-, type- or
/// thread-safety hazard.
T);
//