]>
Commit | Line | Data |
---|---|---|
5e7ed085 | 1 | pub type DateTimeFormatter = *mut ::core::ffi::c_void; |
04454e1e | 2 | #[doc = "*Required features: `\"Globalization_DateTimeFormatting\"`*"] |
5e7ed085 FG |
3 | #[repr(transparent)] |
4 | pub struct DayFormat(pub i32); | |
5 | impl DayFormat { | |
6 | pub const None: Self = Self(0i32); | |
7 | pub const Default: Self = Self(1i32); | |
8 | } | |
9 | impl ::core::marker::Copy for DayFormat {} | |
10 | impl ::core::clone::Clone for DayFormat { | |
11 | fn clone(&self) -> Self { | |
12 | *self | |
13 | } | |
14 | } | |
04454e1e | 15 | #[doc = "*Required features: `\"Globalization_DateTimeFormatting\"`*"] |
5e7ed085 FG |
16 | #[repr(transparent)] |
17 | pub struct DayOfWeekFormat(pub i32); | |
18 | impl DayOfWeekFormat { | |
19 | pub const None: Self = Self(0i32); | |
20 | pub const Default: Self = Self(1i32); | |
21 | pub const Abbreviated: Self = Self(2i32); | |
22 | pub const Full: Self = Self(3i32); | |
23 | } | |
24 | impl ::core::marker::Copy for DayOfWeekFormat {} | |
25 | impl ::core::clone::Clone for DayOfWeekFormat { | |
26 | fn clone(&self) -> Self { | |
27 | *self | |
28 | } | |
29 | } | |
04454e1e | 30 | #[doc = "*Required features: `\"Globalization_DateTimeFormatting\"`*"] |
5e7ed085 FG |
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 | } | |
04454e1e | 43 | #[doc = "*Required features: `\"Globalization_DateTimeFormatting\"`*"] |
5e7ed085 FG |
44 | #[repr(transparent)] |
45 | pub struct MinuteFormat(pub i32); | |
46 | impl MinuteFormat { | |
47 | pub const None: Self = Self(0i32); | |
48 | pub const Default: Self = Self(1i32); | |
49 | } | |
50 | impl ::core::marker::Copy for MinuteFormat {} | |
51 | impl ::core::clone::Clone for MinuteFormat { | |
52 | fn clone(&self) -> Self { | |
53 | *self | |
54 | } | |
55 | } | |
04454e1e | 56 | #[doc = "*Required features: `\"Globalization_DateTimeFormatting\"`*"] |
5e7ed085 FG |
57 | #[repr(transparent)] |
58 | pub struct MonthFormat(pub i32); | |
59 | impl MonthFormat { | |
60 | pub const None: Self = Self(0i32); | |
61 | pub const Default: Self = Self(1i32); | |
62 | pub const Abbreviated: Self = Self(2i32); | |
63 | pub const Full: Self = Self(3i32); | |
64 | pub const Numeric: Self = Self(4i32); | |
65 | } | |
66 | impl ::core::marker::Copy for MonthFormat {} | |
67 | impl ::core::clone::Clone for MonthFormat { | |
68 | fn clone(&self) -> Self { | |
69 | *self | |
70 | } | |
71 | } | |
04454e1e | 72 | #[doc = "*Required features: `\"Globalization_DateTimeFormatting\"`*"] |
5e7ed085 FG |
73 | #[repr(transparent)] |
74 | pub struct SecondFormat(pub i32); | |
75 | impl SecondFormat { | |
76 | pub const None: Self = Self(0i32); | |
77 | pub const Default: Self = Self(1i32); | |
78 | } | |
79 | impl ::core::marker::Copy for SecondFormat {} | |
80 | impl ::core::clone::Clone for SecondFormat { | |
81 | fn clone(&self) -> Self { | |
82 | *self | |
83 | } | |
84 | } | |
04454e1e | 85 | #[doc = "*Required features: `\"Globalization_DateTimeFormatting\"`*"] |
5e7ed085 FG |
86 | #[repr(transparent)] |
87 | pub struct YearFormat(pub i32); | |
88 | impl YearFormat { | |
89 | pub const None: Self = Self(0i32); | |
90 | pub const Default: Self = Self(1i32); | |
91 | pub const Abbreviated: Self = Self(2i32); | |
92 | pub const Full: Self = Self(3i32); | |
93 | } | |
94 | impl ::core::marker::Copy for YearFormat {} | |
95 | impl ::core::clone::Clone for YearFormat { | |
96 | fn clone(&self) -> Self { | |
97 | *self | |
98 | } | |
99 | } |