]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys-0.28.0/src/Windows/Globalization/DateTimeFormatting/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Globalization / DateTimeFormatting / mod.rs
CommitLineData
064997fb
FG
1#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2#[link(name = "windows")]
3extern "system" {}
4pub type DateTimeFormatter = *mut ::core::ffi::c_void;
5#[repr(transparent)]
6pub struct DayFormat(pub i32);
7impl DayFormat {
8 pub const None: Self = Self(0i32);
9 pub const Default: Self = Self(1i32);
10}
11impl ::core::marker::Copy for DayFormat {}
12impl ::core::clone::Clone for DayFormat {
13 fn clone(&self) -> Self {
14 *self
15 }
16}
17#[repr(transparent)]
18pub struct DayOfWeekFormat(pub i32);
19impl 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}
25impl ::core::marker::Copy for DayOfWeekFormat {}
26impl ::core::clone::Clone for DayOfWeekFormat {
27 fn clone(&self) -> Self {
28 *self
29 }
30}
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}
43#[repr(transparent)]
44pub struct MinuteFormat(pub i32);
45impl MinuteFormat {
46 pub const None: Self = Self(0i32);
47 pub const Default: Self = Self(1i32);
48}
49impl ::core::marker::Copy for MinuteFormat {}
50impl ::core::clone::Clone for MinuteFormat {
51 fn clone(&self) -> Self {
52 *self
53 }
54}
55#[repr(transparent)]
56pub struct MonthFormat(pub i32);
57impl 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}
64impl ::core::marker::Copy for MonthFormat {}
65impl ::core::clone::Clone for MonthFormat {
66 fn clone(&self) -> Self {
67 *self
68 }
69}
70#[repr(transparent)]
71pub struct SecondFormat(pub i32);
72impl SecondFormat {
73 pub const None: Self = Self(0i32);
74 pub const Default: Self = Self(1i32);
75}
76impl ::core::marker::Copy for SecondFormat {}
77impl ::core::clone::Clone for SecondFormat {
78 fn clone(&self) -> Self {
79 *self
80 }
81}
82#[repr(transparent)]
83pub struct YearFormat(pub i32);
84impl 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}
90impl ::core::marker::Copy for YearFormat {}
91impl ::core::clone::Clone for YearFormat {
92 fn clone(&self) -> Self {
93 *self
94 }
95}