]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Globalization/DateTimeFormatting/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Globalization / DateTimeFormatting / mod.rs
CommitLineData
5e7ed085 1pub type DateTimeFormatter = *mut ::core::ffi::c_void;
04454e1e 2#[doc = "*Required features: `\"Globalization_DateTimeFormatting\"`*"]
5e7ed085
FG
3#[repr(transparent)]
4pub struct DayFormat(pub i32);
5impl DayFormat {
6 pub const None: Self = Self(0i32);
7 pub const Default: Self = Self(1i32);
8}
9impl ::core::marker::Copy for DayFormat {}
10impl ::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)]
17pub struct DayOfWeekFormat(pub i32);
18impl 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}
24impl ::core::marker::Copy for DayOfWeekFormat {}
25impl ::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)]
32pub struct HourFormat(pub i32);
33impl HourFormat {
34 pub const None: Self = Self(0i32);
35 pub const Default: Self = Self(1i32);
36}
37impl ::core::marker::Copy for HourFormat {}
38impl ::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)]
45pub struct MinuteFormat(pub i32);
46impl MinuteFormat {
47 pub const None: Self = Self(0i32);
48 pub const Default: Self = Self(1i32);
49}
50impl ::core::marker::Copy for MinuteFormat {}
51impl ::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)]
58pub struct MonthFormat(pub i32);
59impl 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}
66impl ::core::marker::Copy for MonthFormat {}
67impl ::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)]
74pub struct SecondFormat(pub i32);
75impl SecondFormat {
76 pub const None: Self = Self(0i32);
77 pub const Default: Self = Self(1i32);
78}
79impl ::core::marker::Copy for SecondFormat {}
80impl ::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)]
87pub struct YearFormat(pub i32);
88impl 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}
94impl ::core::marker::Copy for YearFormat {}
95impl ::core::clone::Clone for YearFormat {
96 fn clone(&self) -> Self {
97 *self
98 }
99}