]>
Commit | Line | Data |
---|---|---|
064997fb FG |
1 | #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] |
2 | #[link(name = "windows")] | |
3 | extern "system" {} | |
4 | pub type DateTimeFormatter = *mut ::core::ffi::c_void; | |
5 | #[repr(transparent)] | |
6 | pub struct DayFormat(pub i32); | |
7 | impl DayFormat { | |
8 | pub const None: Self = Self(0i32); | |
9 | pub const Default: Self = Self(1i32); | |
10 | } | |
11 | impl ::core::marker::Copy for DayFormat {} | |
12 | impl ::core::clone::Clone for DayFormat { | |
13 | fn clone(&self) -> Self { | |
14 | *self | |
15 | } | |
16 | } | |
17 | #[repr(transparent)] | |
18 | pub struct DayOfWeekFormat(pub i32); | |
19 | impl DayOfWeekFormat { | |
20 | pub const None: Self = Self(0i32); | |
21 | pub const Default: Self = Self(1i32); | |
22 | pub const Abbreviated: Self = Self(2i32); | |
23 | pub const Full: Self = Self(3i32); | |
24 | } | |
25 | impl ::core::marker::Copy for DayOfWeekFormat {} | |
26 | impl ::core::clone::Clone for DayOfWeekFormat { | |
27 | fn clone(&self) -> Self { | |
28 | *self | |
29 | } | |
30 | } | |
31 | #[repr(transparent)] | |
32 | pub struct HourFormat(pub i32); | |
33 | impl HourFormat { | |
34 | pub const None: Self = Self(0i32); | |
35 | pub const Default: Self = Self(1i32); | |
36 | } | |
37 | impl ::core::marker::Copy for HourFormat {} | |
38 | impl ::core::clone::Clone for HourFormat { | |
39 | fn clone(&self) -> Self { | |
40 | *self | |
41 | } | |
42 | } | |
43 | #[repr(transparent)] | |
44 | pub struct MinuteFormat(pub i32); | |
45 | impl MinuteFormat { | |
46 | pub const None: Self = Self(0i32); | |
47 | pub const Default: Self = Self(1i32); | |
48 | } | |
49 | impl ::core::marker::Copy for MinuteFormat {} | |
50 | impl ::core::clone::Clone for MinuteFormat { | |
51 | fn clone(&self) -> Self { | |
52 | *self | |
53 | } | |
54 | } | |
55 | #[repr(transparent)] | |
56 | pub struct MonthFormat(pub i32); | |
57 | impl MonthFormat { | |
58 | pub const None: Self = Self(0i32); | |
59 | pub const Default: Self = Self(1i32); | |
60 | pub const Abbreviated: Self = Self(2i32); | |
61 | pub const Full: Self = Self(3i32); | |
62 | pub const Numeric: Self = Self(4i32); | |
63 | } | |
64 | impl ::core::marker::Copy for MonthFormat {} | |
65 | impl ::core::clone::Clone for MonthFormat { | |
66 | fn clone(&self) -> Self { | |
67 | *self | |
68 | } | |
69 | } | |
70 | #[repr(transparent)] | |
71 | pub struct SecondFormat(pub i32); | |
72 | impl SecondFormat { | |
73 | pub const None: Self = Self(0i32); | |
74 | pub const Default: Self = Self(1i32); | |
75 | } | |
76 | impl ::core::marker::Copy for SecondFormat {} | |
77 | impl ::core::clone::Clone for SecondFormat { | |
78 | fn clone(&self) -> Self { | |
79 | *self | |
80 | } | |
81 | } | |
82 | #[repr(transparent)] | |
83 | pub struct YearFormat(pub i32); | |
84 | impl YearFormat { | |
85 | pub const None: Self = Self(0i32); | |
86 | pub const Default: Self = Self(1i32); | |
87 | pub const Abbreviated: Self = Self(2i32); | |
88 | pub const Full: Self = Self(3i32); | |
89 | } | |
90 | impl ::core::marker::Copy for YearFormat {} | |
91 | impl ::core::clone::Clone for YearFormat { | |
92 | fn clone(&self) -> Self { | |
93 | *self | |
94 | } | |
95 | } |