Debian Codegraph @

src/unit.rs

raw symbols SCIP
1 //! Conversion between units of time.
2
3 use selfrust-analyzer cargo time-core 0.1.9 unit/::sealedrust-analyzer cargo time-core 0.1.9 unit/sealed/::{DefaultOutputrust-analyzer cargo time-core 0.1.9 unit/sealed/DefaultOutput#, MultipleOfrust-analyzer cargo time-core 0.1.9 unit/sealed/MultipleOf#};
4
5 /// Given the list of types, stringify them as a list.
6 macro_rules! stringify_outputsrust-analyzer cargo time-core 0.1.9 unit/stringify_outputs! {
7 (@inner $first:ty) => {
8 concat!("or `", stringify!($first), "`")
9 };
10 (@inner $first:ty, $($t:ty),+) => {
11 concat!(stringify_outputs!($first), ", ", stringify_outputs!(@inner $($t),+))
12 };
13 ($first:ty) => {
14 concat!("`", stringify!($first), "`")
15 };
16 ($($t:ty),+) => {
17 stringify_outputs!(@inner $($t),+)
18 };
19 }
20
21 /// Declare all unit types.
22 macro_rules! declare_typesrust-analyzer cargo time-core 0.1.9 unit/declare_types! {
23 ($($t:ident ($str:literal))+) => {$(
24 #[doc = concat!("A unit of time representing exactly `N` ", $str, "s.")]
25 #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
26 pub struct $t<const N: u128 = 1>;
27 )+};
28 }
29
30 /// Implement `Per` for all relevant types. Identity implementations are automatic.
31 macro_rules! impl_perrust-analyzer cargo time-core 0.1.9 unit/impl_per! {
32 ($($t:ident per {$(
33 $larger:ident : [$default_output:ty]
34
35 $($int_output:ty)|+ = $int_value:expr;
36 $($float_output:ty)|+ = $float_value:expr;
37 )+})*) => {$(
38 impl $t<1> {
39 #[doc = concat!("Obtain the number of times `", stringify!($t), "` can fit into `T`.")]
40 #[doc = concat!("If `T` is smaller than `", stringify!($t), "`, the code will fail to")]
41 /// compile. The return type is the smallest unsigned integer type that can represent
42 /// the value.
43 ///
44 /// Valid calls:
45 ///
46 $(#[doc = concat!(
47 " - `", stringify!($t), "::per(", stringify!($larger), ")` (returns `",
48 stringify!($default_output), "`)"
49 )])+
50 #[inline]
51 pub const fn per<T>(_larger: T) -> <T as DefaultOutput<Self>>::Output
52 where
53 T: MultipleOf<Self, T::Output> + DefaultOutput<Self> + Copy,
54 {
55 T::VALUE
56 }
57
58 #[doc = concat!("Obtain the number of times `", stringify!($t), "` can fit into `T`.")]
59 #[doc = concat!("If `T` is smaller than `", stringify!($t), "`, the code will fail to")]
60 /// compile. The return type is any primitive numeric type that can represent the value.
61 ///
62 /// Valid calls:
63 ///
64 $(#[doc = concat!(
65 " - `", stringify!($t), "::per(", stringify!($larger), ")` (returns ",
66 stringify_outputs!($($int_output),+ , $($float_output),+), ")"
67 )])+
68 #[inline]
69 pub const fn per_t<Output>(larger: impl MultipleOf<Self, Output> + Copy) -> Output {
70 multiple_of_value(larger)
71 }
72 }
73
74 $(
75 $(impl MultipleOf<$t, $int_output> for $larger {
76 const VALUE: $int_output = $int_value;
77 })+
78
79 $(impl MultipleOf<$t, $float_output> for $larger {
80 const VALUE: $float_output = $float_value;
81 })+
82
83 impl DefaultOutput<$t> for $larger {
84 type Output = $default_output;
85 }
86 )+
87 )*};
88 }
89
90 /// Implement `PartialEq` and `PartialOrd` between unit types.
91 macro_rules! impl_partial_eq_ordrust-analyzer cargo time-core 0.1.9 unit/impl_partial_eq_ord! {
92 ($($self:ident {
93 $(> $($bigger:ident)+;)?
94 $(< $($smaller:ident)+;)?
95 })*) => {$(
96 $($(
97 impl<const N: u128> PartialEq<$bigger<N>> for $self<N> {
98 #[inline]
99 fn eq(&self, _: &$bigger<N>) -> bool {
100 false
101 }
102 }
103
104 impl<const N: u128> PartialOrd<$bigger<N>> for $self<N> {
105 #[inline]
106 fn partial_cmp(&self, _: &$bigger<N>) -> Option<core::cmp::Ordering> {
107 Some(core::cmp::Ordering::Greater)
108 }
109 }
110 )+)?
111
112 $($(
113 impl<const N: u128> PartialEq<$smaller<N>> for $self<N> {
114 #[inline]
115 fn eq(&self, _: &$smaller<N>) -> bool {
116 false
117 }
118 }
119
120 impl<const N: u128> PartialOrd<$smaller<N>> for $self<N> {
121 #[inline]
122 fn partial_cmp(&self, _: &$smaller<N>) -> Option<core::cmp::Ordering> {
123 Some(core::cmp::Ordering::Less)
124 }
125 }
126 )+)?
127 )*};
128 }
129
130 /// Symmetrically implement `PartialEq` and `PartialOrd` between `Unit` and all unit types.
131 macro_rules! impl_partial_eq_ord_for_unitrust-analyzer cargo time-core 0.1.9 unit/impl_partial_eq_ord_for_unit! {
132 ($($ty:ident)+) => {$(
133 impl<const N: u128> PartialEq<$ty<N>> for Unit<N> {
134 #[inline]
135 fn eq(&self, _: &$ty<N>) -> bool {
136 *self == Self::$ty
137 }
138 }
139
140 impl<const N: u128> PartialEq<Unit<N>> for $ty<N> {
141 #[inline]
142 fn eq(&self, other: &Unit<N>) -> bool {
143 *other == Unit::$ty
144 }
145 }
146
147 impl<const N: u128> PartialOrd<$ty<N>> for Unit<N> {
148 #[inline]
149 fn partial_cmp(&self, _: &$ty<N>) -> Option<core::cmp::Ordering> {
150 self.partial_cmp(&Unit::$ty)
151 }
152 }
153
154 impl<const N: u128> PartialOrd<Unit<N>> for $ty<N> {
155 #[inline]
156 fn partial_cmp(&self, other: &Unit<N>) -> Option<core::cmp::Ordering> {
157 Unit::$ty.partial_cmp(other)
158 }
159 }
160 )+};
161 }
162
163 mod sealedrust-analyzer cargo time-core 0.1.9 unit/sealed/ {
164 /// A trait for defining the ratio of two units of time.
165 ///
166 /// This trait is used to implement the `per` method on the various structs.
167 #[diagnostic::on_unimplemented(message = "`{Self}` is not an integer multiple of `{T}`")]
168 pub trait MultipleOfrust-analyzer cargo time-core 0.1.9 unit/sealed/MultipleOf#<T, Output> {
169 /// The number of one unit of time in the other.
170 const VALUErust-analyzer cargo time-core 0.1.9 unit/sealed/MultipleOf#VALUE.: Output;
171 }
172
173 /// A trait for defining the default output type for the `per` method.
174 pub trait DefaultOutputrust-analyzer cargo time-core 0.1.9 unit/sealed/DefaultOutput#<T> {
175 /// The default output type for the `per` method.
176 type Outputrust-analyzer cargo time-core 0.1.9 unit/sealed/DefaultOutput#Output#;
177 }
178 }
179
180 // Split this out to a separate function to permit naming `T` while also using `impl Trait` as a
181 // parameter in the public API.`
182 const fn multiple_of_valuerust-analyzer cargo time-core 0.1.9 unit/multiple_of_value().<T, U, Output>(_: T) -> Output
183 where
184 T: MultipleOfrust-analyzer cargo time-core 0.1.9 unit/sealed/MultipleOf#<U, Output> + Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#,
185 {
186 T::VALUErust-analyzer cargo time-core 0.1.9 unit/sealed/MultipleOf#VALUE.
187 }
188
189 declare_typesrust-analyzer cargo time-core 0.1.9 unit/declare_types!! {
190 Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# ("nanosecond")
191 Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# ("microsecond")
192 Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# ("millisecond")
193 Secondrust-analyzer cargo time-core 0.1.9 unit/Second# ("second")
194 Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# ("minute")
195 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# ("hour")
196 Dayrust-analyzer cargo time-core 0.1.9 unit/Day# ("day")
197 Weekrust-analyzer cargo time-core 0.1.9 unit/Week# ("week")
198 }
199
200 impl_perrust-analyzer cargo time-core 0.1.9 unit/impl_per!! {
201 Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# per {
202 Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 1; f32|f64 = 1.;
203 Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond#: [u16] u16|u32|u64|u128|usize|i16|i32|i64|i128|isize = 1_000; f32|f64 = 1_000.;
204 Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond#: [u32] u32|u64|u128|usize|i32|i64|i128|isize = 1_000_000; f32|f64 = 1_000_000.;
205 Secondrust-analyzer cargo time-core 0.1.9 unit/Second#:
206 [u32] u32|u64|u128|usize|i32|i64|i128|isize = 1_000_000_000; f32|f64 = 1_000_000_000.;
207 Minuterust-analyzer cargo time-core 0.1.9 unit/Minute#: [u64] u64|u128|i64|i128 = 60_000_000_000; f32|f64 = 60_000_000_000.;
208 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour#: [u64] u64|u128|i64|i128 = 3_600_000_000_000; f32|f64 = 3_600_000_000_000.;
209 Dayrust-analyzer cargo time-core 0.1.9 unit/Day#: [u64] u64|u128|i64|i128 = 86_400_000_000_000; f32|f64 = 86_400_000_000_000.;
210 Weekrust-analyzer cargo time-core 0.1.9 unit/Week#: [u64] u64|u128|i64|i128 = 604_800_000_000_000; f32|f64 = 604_800_000_000_000.;
211 }
212 Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# per {
213 Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 1; f32|f64 = 1.;
214 Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond#: [u16] u16|u32|u64|u128|usize|i16|i32|i64|i128|isize = 1_000; f32|f64 = 1_000.;
215 Secondrust-analyzer cargo time-core 0.1.9 unit/Second#: [u32] u32|u64|u128|usize|i32|i64|i128|isize = 1_000_000; f32|f64 = 1_000_000.;
216 Minuterust-analyzer cargo time-core 0.1.9 unit/Minute#: [u32] u32|u64|u128|usize|i32|i64|i128|isize = 60_000_000; f32|f64 = 60_000_000.;
217 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour#: [u32] u32|u64|u128|i64|i128 = 3_600_000_000; f32|f64 = 3_600_000_000.;
218 Dayrust-analyzer cargo time-core 0.1.9 unit/Day#: [u64] u64|u128|i64|i128 = 86_400_000_000; f32|f64 = 86_400_000_000.;
219 Weekrust-analyzer cargo time-core 0.1.9 unit/Week#: [u64] u64|u128|i64|i128 = 604_800_000_000; f32|f64 = 604_800_000_000.;
220 }
221 Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# per {
222 Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 1; f32|f64 = 1.;
223 Secondrust-analyzer cargo time-core 0.1.9 unit/Second#: [u16] u16|u32|u64|u128|usize|i16|i32|i64|i128|isize = 1_000; f32|f64 = 1_000.;
224 Minuterust-analyzer cargo time-core 0.1.9 unit/Minute#: [u16] u16|u32|u64|u128|usize|i32|i64|i128|isize = 60_000; f32|f64 = 60_000.;
225 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour#: [u32] u32|u64|u128|usize|i32|i64|i128|isize = 3_600_000; f32|f64 = 3_600_000.;
226 Dayrust-analyzer cargo time-core 0.1.9 unit/Day#: [u32] u32|u64|u128|usize|i32|i64|i128|isize = 86_400_000; f32|f64 = 86_400_000.;
227 Weekrust-analyzer cargo time-core 0.1.9 unit/Week#: [u32] u32|u64|u128|usize|i32|i64|i128|isize = 604_800_000; f32|f64 = 604_800_000.;
228 }
229 Secondrust-analyzer cargo time-core 0.1.9 unit/Second# per {
230 Secondrust-analyzer cargo time-core 0.1.9 unit/Second#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 1; f32|f64 = 1.;
231 Minuterust-analyzer cargo time-core 0.1.9 unit/Minute#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 60; f32|f64 = 60.;
232 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour#: [u16] u16|u32|u64|u128|usize|i16|i32|i64|i128|isize = 3_600; f32|f64 = 3_600.;
233 Dayrust-analyzer cargo time-core 0.1.9 unit/Day#: [u32] u32|u64|u128|usize|i32|i64|i128|isize = 86_400; f32|f64 = 86_400.;
234 Weekrust-analyzer cargo time-core 0.1.9 unit/Week#: [u32] u32|u64|u128|usize|i32|i64|i128|isize = 604_800; f32|f64 = 604_800.;
235 }
236 Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# per {
237 Minuterust-analyzer cargo time-core 0.1.9 unit/Minute#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 1; f32|f64 = 1.;
238 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 60; f32|f64 = 60.;
239 Dayrust-analyzer cargo time-core 0.1.9 unit/Day#: [u16] u16|u32|u64|u128|usize|i16|i32|i64|i128|isize = 1_440; f32|f64 = 1_440.;
240 Weekrust-analyzer cargo time-core 0.1.9 unit/Week#: [u16] u16|u32|u64|u128|usize|i16|i32|i64|i128|isize = 10_080; f32|f64 = 10_080.;
241 }
242 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# per {
243 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 1; f32|f64 = 1.;
244 Dayrust-analyzer cargo time-core 0.1.9 unit/Day#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 24; f32|f64 = 24.;
245 Weekrust-analyzer cargo time-core 0.1.9 unit/Week#: [u8] u8|u16|u32|u64|u128|usize|i16|i32|i64|i128|isize = 168; f32|f64 = 168.;
246 }
247 Dayrust-analyzer cargo time-core 0.1.9 unit/Day# per {
248 Dayrust-analyzer cargo time-core 0.1.9 unit/Day#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 1; f32|f64 = 1.;
249 Weekrust-analyzer cargo time-core 0.1.9 unit/Week#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 7; f32|f64 = 7.;
250 }
251 Weekrust-analyzer cargo time-core 0.1.9 unit/Week# per {
252 Weekrust-analyzer cargo time-core 0.1.9 unit/Week#: [u8] u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize = 1; f32|f64 = 1.;
253 }
254 }
255
256 impl_partial_eq_ordrust-analyzer cargo time-core 0.1.9 unit/impl_partial_eq_ord!! {
257 Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# {
258 < Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# Secondrust-analyzer cargo time-core 0.1.9 unit/Second# Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# Dayrust-analyzer cargo time-core 0.1.9 unit/Day# Weekrust-analyzer cargo time-core 0.1.9 unit/Week#;
259 }
260 Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# {
261 > Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond#;
262 < Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# Secondrust-analyzer cargo time-core 0.1.9 unit/Second# Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# Dayrust-analyzer cargo time-core 0.1.9 unit/Day# Weekrust-analyzer cargo time-core 0.1.9 unit/Week#;
263 }
264 Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# {
265 > Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond#;
266 < Secondrust-analyzer cargo time-core 0.1.9 unit/Second# Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# Dayrust-analyzer cargo time-core 0.1.9 unit/Day# Weekrust-analyzer cargo time-core 0.1.9 unit/Week#;
267 }
268 Secondrust-analyzer cargo time-core 0.1.9 unit/Second# {
269 > Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond#;
270 < Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# Dayrust-analyzer cargo time-core 0.1.9 unit/Day# Weekrust-analyzer cargo time-core 0.1.9 unit/Week#;
271 }
272 Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# {
273 > Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# Secondrust-analyzer cargo time-core 0.1.9 unit/Second#;
274 < Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# Dayrust-analyzer cargo time-core 0.1.9 unit/Day# Weekrust-analyzer cargo time-core 0.1.9 unit/Week#;
275 }
276 Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# {
277 > Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# Secondrust-analyzer cargo time-core 0.1.9 unit/Second# Minuterust-analyzer cargo time-core 0.1.9 unit/Minute#;
278 < Dayrust-analyzer cargo time-core 0.1.9 unit/Day# Weekrust-analyzer cargo time-core 0.1.9 unit/Week#;
279 }
280 Dayrust-analyzer cargo time-core 0.1.9 unit/Day# {
281 > Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# Secondrust-analyzer cargo time-core 0.1.9 unit/Second# Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# Hourrust-analyzer cargo time-core 0.1.9 unit/Hour#;
282 < Weekrust-analyzer cargo time-core 0.1.9 unit/Week#;
283 }
284 Weekrust-analyzer cargo time-core 0.1.9 unit/Week# {
285 > Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# Secondrust-analyzer cargo time-core 0.1.9 unit/Second# Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# Dayrust-analyzer cargo time-core 0.1.9 unit/Day#;
286 }
287 }
288
289 /// A statically-known multiple of a given unit of time.
290 #[non_exhaustive]
291 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, PartialOrdrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd:, Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:)]
292 pub enum Unitrust-analyzer cargo time-core 0.1.9 unit/Unit#<const N: u128 = 1> {
293 #[expect(missing_docs)]
294 Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Unit#Nanosecond#,
295 #[expect(missing_docs)]
296 Microsecondrust-analyzer cargo time-core 0.1.9 unit/Unit#Microsecond#,
297 #[expect(missing_docs)]
298 Millisecondrust-analyzer cargo time-core 0.1.9 unit/Unit#Millisecond#,
299 #[expect(missing_docs)]
300 Secondrust-analyzer cargo time-core 0.1.9 unit/Unit#Second#,
301 #[expect(missing_docs)]
302 Minuterust-analyzer cargo time-core 0.1.9 unit/Unit#Minute#,
303 #[expect(missing_docs)]
304 Hourrust-analyzer cargo time-core 0.1.9 unit/Unit#Hour#,
305 #[expect(missing_docs)]
306 Dayrust-analyzer cargo time-core 0.1.9 unit/Unit#Day#,
307 #[expect(missing_docs)]
308 Weekrust-analyzer cargo time-core 0.1.9 unit/Unit#Week#,
309 }
310
311 impl_partial_eq_ord_for_unitrust-analyzer cargo time-core 0.1.9 unit/impl_partial_eq_ord_for_unit!![Nanosecondrust-analyzer cargo time-core 0.1.9 unit/Nanosecond# Microsecondrust-analyzer cargo time-core 0.1.9 unit/Microsecond# Millisecondrust-analyzer cargo time-core 0.1.9 unit/Millisecond# Secondrust-analyzer cargo time-core 0.1.9 unit/Second# Minuterust-analyzer cargo time-core 0.1.9 unit/Minute# Hourrust-analyzer cargo time-core 0.1.9 unit/Hour# Dayrust-analyzer cargo time-core 0.1.9 unit/Day# Weekrust-analyzer cargo time-core 0.1.9 unit/Week#];