File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
4
4
/// Describes an `NSTDOptional` variant.
5
5
typedef enum {
6
- /// "Some" initialized value.
7
- NSTD_OPTIONAL_STATUS_SOME ,
8
6
/// No value.
9
- NSTD_OPTIONAL_STATUS_NONE
7
+ NSTD_OPTIONAL_STATUS_NONE ,
8
+ /// "Some" initialized value.
9
+ NSTD_OPTIONAL_STATUS_SOME
10
10
} NSTDOptionalStatus ;
11
11
12
12
/// Represents an optional (possibly uninitialized) value.
Original file line number Diff line number Diff line change 4
4
#[ repr( C ) ]
5
5
#[ allow( non_camel_case_types) ]
6
6
pub enum NSTDOptionalStatus {
7
- /// "Some" initialized value.
8
- NSTD_OPTIONAL_STATUS_SOME ,
9
7
/// No value.
10
8
NSTD_OPTIONAL_STATUS_NONE ,
9
+ /// "Some" initialized value.
10
+ NSTD_OPTIONAL_STATUS_SOME ,
11
11
}
12
12
13
13
/// Represents an optional (possibly uninitialized) value.
14
14
#[ repr( C ) ]
15
15
pub enum NSTDOptional < T > {
16
- /// The initialized variant.
17
- Some ( T ) ,
18
16
/// The uninitialized variant.
19
17
None ,
18
+ /// The initialized variant.
19
+ Some ( T ) ,
20
20
}
You can’t perform that action at this time.
0 commit comments