| 1 |
// Prefer runtime checks if possible, as otherwise tests can't be run at all if something is |
| 2 |
// changed. |
| 3 |
|
| 4 |
use std::borrow::Borrow; |
| 5 |
use std::error::Error as StdError; |
| 6 |
use std::fmt::{Debug, Display}; |
| 7 |
use std::hash::Hash; |
| 8 |
use std::iter::Sum; |
| 9 |
use std::marker::PhantomData; |
| 10 |
use std::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Sub, SubAssign}; |
| 11 |
use std::panic::{RefUnwindSafe, UnwindSafe}; |
| 12 |
use std::time::{Duration as StdDuration, Instant as StdInstant, SystemTime}; |
| 13 |
|
| 14 |
use quickcheck::Arbitrary; |
| 15 |
use rand08::distributions::{Distribution as DistributionRand08, Standard as StandardRand08}; |
| 16 |
use rand09::distr::{Distribution as DistributionRand09, StandardUniform as StandardUniformRand09}; |
| 17 |
use rstest::rstest; |
| 18 |
use serde::{Deserialize, Serialize}; |
| 19 |
#[expect(deprecated)] |
| 20 |
use time::Instant; |
| 21 |
use time::format_description::well_known::iso8601; |
| 22 |
use time::format_description::{BorrowedFormatItem, Component, modifier, well_known}; |
| 23 |
use time::formatting::Formattable; |
| 24 |
use time::parsing::{Parsable, Parsed}; |
| 25 |
use time::{ |
| 26 |
Date, Error, Month, OffsetDateTime, PlainDateTime, SignedDuration, Time, UtcDateTime, |
| 27 |
UtcOffset, Weekday, error, ext, |
| 28 |
}; |
| 29 |
|
| 30 |
#[rstest] |
| 31 |
#[case(PhantomData::<Date>, 4)] |
| 32 |
#[case(PhantomData::<SignedDuration>, 8)] |
| 33 |
#[case(PhantomData::<OffsetDateTime>, 4)] |
| 34 |
#[case(PhantomData::<PlainDateTime>, 4)] |
| 35 |
#[case(PhantomData::<UtcDateTime>, 4)] |
| 36 |
#[case(PhantomData::<Time>, 4)] |
| 37 |
#[case(PhantomData::<UtcOffset>, 1)] |
| 38 |
#[case(PhantomData::<error::ComponentRange>, 8)] |
| 39 |
#[case(PhantomData::<error::ConversionRange>, 1)] |
| 40 |
#[case(PhantomData::<error::DifferentVariant>, 1)] |
| 41 |
#[case(PhantomData::<error::IndeterminateOffset>, 1)] |
| 42 |
#[case(PhantomData::<modifier::Day>, 1)] |
| 43 |
#[expect(deprecated)] |
| 44 |
#[case(PhantomData::<modifier::Hour>, 1)] |
| 45 |
#[case(PhantomData::<modifier::Minute>, 1)] |
| 46 |
#[expect(deprecated)] |
| 47 |
#[case(PhantomData::<modifier::Month>, 1)] |
| 48 |
#[case(PhantomData::<modifier::OffsetHour>, 1)] |
| 49 |
#[case(PhantomData::<modifier::OffsetMinute>, 1)] |
| 50 |
#[case(PhantomData::<modifier::OffsetSecond>, 1)] |
| 51 |
#[case(PhantomData::<modifier::Ordinal>, 1)] |
| 52 |
#[case(PhantomData::<modifier::Period>, 1)] |
| 53 |
#[case(PhantomData::<modifier::Second>, 1)] |
| 54 |
#[case(PhantomData::<modifier::Subsecond>, 1)] |
| 55 |
#[expect(deprecated)] |
| 56 |
#[case(PhantomData::<modifier::WeekNumber>, 1)] |
| 57 |
#[expect(deprecated)] |
| 58 |
#[case(PhantomData::<modifier::Weekday>, 1)] |
| 59 |
#[expect(deprecated)] |
| 60 |
#[case(PhantomData::<modifier::Year>, 1)] |
| 61 |
#[case(PhantomData::<well_known::Rfc2822>, 1)] |
| 62 |
#[case(PhantomData::<well_known::Rfc3339>, 1)] |
| 63 |
#[case(PhantomData::<well_known::Iso8601<{ iso8601::Config::DEFAULT.encode() }>>, 1)] |
| 64 |
#[case(PhantomData::<iso8601::Config>, 1)] |
| 65 |
#[case(PhantomData::<iso8601::DateKind>, 1)] |
| 66 |
#[case(PhantomData::<iso8601::FormattedComponents>, 1)] |
| 67 |
#[case(PhantomData::<iso8601::OffsetPrecision>, 1)] |
| 68 |
#[case(PhantomData::<iso8601::TimePrecision>, 1)] |
| 69 |
#[case(PhantomData::<Parsed>, align_of::<u128>())] |
| 70 |
#[case(PhantomData::<Month>, 1)] |
| 71 |
#[case(PhantomData::<Weekday>, 1)] |
| 72 |
#[case(PhantomData::<Error>, 8)] |
| 73 |
#[case(PhantomData::<error::Format>, 8)] |
| 74 |
#[case(PhantomData::<error::InvalidFormatDescription>, 8)] |
| 75 |
#[case(PhantomData::<error::Parse>, 8)] |
| 76 |
#[case(PhantomData::<error::ParseFromDescription>, 8)] |
| 77 |
#[case(PhantomData::<error::TryFromParsed>, 8)] |
| 78 |
#[case(PhantomData::<Component>, 2)] |
| 79 |
#[case(PhantomData::<BorrowedFormatItem<'_>>, 8)] |
| 80 |
#[expect(deprecated)] |
| 81 |
#[case(PhantomData::<modifier::MonthRepr>, 1)] |
| 82 |
#[case(PhantomData::<modifier::Padding>, 1)] |
| 83 |
#[case(PhantomData::<modifier::SubsecondDigits>, 1)] |
| 84 |
#[expect(deprecated)] |
| 85 |
#[case(PhantomData::<modifier::WeekNumberRepr>, 1)] |
| 86 |
#[expect(deprecated)] |
| 87 |
#[case(PhantomData::<modifier::WeekdayRepr>, 1)] |
| 88 |
#[expect(deprecated)] |
| 89 |
#[case(PhantomData::<modifier::YearRepr>, 1)] |
| 90 |
fn alignment<T>(#[case] _type: PhantomData<T>, #[case] expected: usize) { |
| 91 |
assert_eq!( |
| 92 |
align_of::<T>(), |
| 93 |
expected, |
| 94 |
"alignment of `{}` was {expected}", |
| 95 |
std::any::type_name::<T>() |
| 96 |
); |
| 97 |
} |
| 98 |
|
| 99 |
#[rstest] |
| 100 |
#[case(PhantomData::<Date>, 4, 4)] |
| 101 |
#[case(PhantomData::<SignedDuration>, 16, 16)] |
| 102 |
#[case(PhantomData::<OffsetDateTime>, 16, 16)] |
| 103 |
#[case(PhantomData::<PlainDateTime>, 12, 12)] |
| 104 |
#[case(PhantomData::<UtcDateTime>, 12, 12)] |
| 105 |
#[case(PhantomData::<Time>, 8, 8)] |
| 106 |
#[case(PhantomData::<UtcOffset>, 3, 4)] |
| 107 |
#[case(PhantomData::<error::ComponentRange>, 24, 24)] |
| 108 |
#[case(PhantomData::<error::ConversionRange>, 0, 1)] |
| 109 |
#[case(PhantomData::<error::DifferentVariant>, 0, 1)] |
| 110 |
#[case(PhantomData::<error::IndeterminateOffset>, 0, 1)] |
| 111 |
#[case(PhantomData::<modifier::Day>, 1, 1)] |
| 112 |
#[expect(deprecated)] |
| 113 |
#[case(PhantomData::<modifier::Hour>, 2, 2)] |
| 114 |
#[case(PhantomData::<modifier::Minute>, 1, 1)] |
| 115 |
#[expect(deprecated)] |
| 116 |
#[case(PhantomData::<modifier::Month>, 3, 3)] |
| 117 |
#[case(PhantomData::<modifier::OffsetHour>, 2, 2)] |
| 118 |
#[case(PhantomData::<modifier::OffsetMinute>, 1, 1)] |
| 119 |
#[case(PhantomData::<modifier::OffsetSecond>, 1, 1)] |
| 120 |
#[case(PhantomData::<modifier::Ordinal>, 1, 1)] |
| 121 |
#[case(PhantomData::<modifier::Period>, 2, 2)] |
| 122 |
#[case(PhantomData::<modifier::Second>, 1, 1)] |
| 123 |
#[case(PhantomData::<modifier::Subsecond>, 1, 1)] |
| 124 |
#[expect(deprecated)] |
| 125 |
#[case(PhantomData::<modifier::WeekNumber>, 2, 2)] |
| 126 |
#[expect(deprecated)] |
| 127 |
#[case(PhantomData::<modifier::Weekday>, 3, 3)] |
| 128 |
#[expect(deprecated)] |
| 129 |
#[case(PhantomData::<modifier::Year>, 5, 5)] |
| 130 |
#[case(PhantomData::<well_known::Rfc2822>, 0, 1)] |
| 131 |
#[case(PhantomData::<well_known::Rfc3339>, 0, 1)] |
| 132 |
#[case(PhantomData::<well_known::Iso8601<{ iso8601::Config::DEFAULT.encode() }>>, 0, 1)] |
| 133 |
#[case(PhantomData::<iso8601::Config>, 7, 7)] |
| 134 |
#[case(PhantomData::<iso8601::DateKind>, 1, 1)] |
| 135 |
#[case(PhantomData::<iso8601::FormattedComponents>, 1, 1)] |
| 136 |
#[case(PhantomData::<iso8601::OffsetPrecision>, 1, 1)] |
| 137 |
#[case(PhantomData::<iso8601::TimePrecision>, 2, 2)] |
| 138 |
#[case(PhantomData::<Parsed>, 64, 64)] |
| 139 |
#[case(PhantomData::<Month>, 1, 1)] |
| 140 |
#[case(PhantomData::<Weekday>, 1, 1)] |
| 141 |
#[case(PhantomData::<Error>, 48, 48)] |
| 142 |
#[case(PhantomData::<error::Format>, 24, 24)] |
| 143 |
#[case(PhantomData::<error::InvalidFormatDescription>, 48, 48)] |
| 144 |
#[case(PhantomData::<error::Parse>, 32, 32)] |
| 145 |
#[case(PhantomData::<error::ParseFromDescription>, 24, 24)] |
| 146 |
#[case(PhantomData::<error::TryFromParsed>, 24, 24)] |
| 147 |
#[case(PhantomData::<Component>, 6, 6)] |
| 148 |
#[case(PhantomData::<BorrowedFormatItem<'_>>, 24, 24)] |
| 149 |
#[expect(deprecated)] |
| 150 |
#[case(PhantomData::<modifier::MonthRepr>, 1, 1)] |
| 151 |
#[case(PhantomData::<modifier::Padding>, 1, 1)] |
| 152 |
#[case(PhantomData::<modifier::SubsecondDigits>, 1, 1)] |
| 153 |
#[expect(deprecated)] |
| 154 |
#[case(PhantomData::<modifier::WeekNumberRepr>, 1, 1)] |
| 155 |
#[expect(deprecated)] |
| 156 |
#[case(PhantomData::<modifier::WeekdayRepr>, 1, 1)] |
| 157 |
#[expect(deprecated)] |
| 158 |
#[case(PhantomData::<modifier::YearRepr>, 1, 1)] |
| 159 |
fn size<T>( |
| 160 |
#[case] _type: PhantomData<T>, |
| 161 |
#[case] expected_size: usize, |
| 162 |
#[case] expected_opt_size: usize, |
| 163 |
) { |
| 164 |
assert!( |
| 165 |
size_of::<T>() <= expected_size, |
| 166 |
"size of `{}` used to be {expected_size}, but is now {}", |
| 167 |
std::any::type_name::<T>(), |
| 168 |
size_of::<T>(), |
| 169 |
); |
| 170 |
assert!( |
| 171 |
size_of::<Option<T>>() <= expected_opt_size, |
| 172 |
"size of `Option<{}>` used to be {expected_opt_size}, but is now {}", |
| 173 |
std::any::type_name::<T>(), |
| 174 |
size_of::<Option<T>>(), |
| 175 |
); |
| 176 |
} |
| 177 |
|
| 178 |
macro_rules! assert_obj_safe { |
| 179 |
($($xs:path),+ $(,)?) => { |
| 180 |
$(const _: Option<&dyn $xs> = None;)+ |
| 181 |
}; |
| 182 |
} |
| 183 |
|
| 184 |
assert_obj_safe!(ext::NumericalDuration); |
| 185 |
assert_obj_safe!(ext::NumericalStdDuration); |
| 186 |
// `Parsable` is not object safe. |
| 187 |
// `Formattable` is not object safe. |
| 188 |
|
| 189 |
macro_rules! assert_impl { |
| 190 |
($(#[$meta:meta])* $($(@$lifetimes:lifetime),+ ;)? $type:ty: $($trait:path),+ $(,)?) => { |
| 191 |
$(#[$meta])* |
| 192 |
const _: fn() = || { |
| 193 |
fn assert_impl_all<$($($lifetimes,)+)? T: ?Sized $(+ $trait)+>() {} |
| 194 |
assert_impl_all::<$type>(); |
| 195 |
}; |
| 196 |
}; |
| 197 |
} |
| 198 |
|
| 199 |
assert_impl! { @'a; Date: |
| 200 |
Add<SignedDuration, Output = Date>, |
| 201 |
Add<StdDuration, Output = Date>, |
| 202 |
AddAssign<SignedDuration>, |
| 203 |
AddAssign<StdDuration>, |
| 204 |
Arbitrary, |
| 205 |
Clone, |
| 206 |
Debug, |
| 207 |
Deserialize<'a>, |
| 208 |
Display, |
| 209 |
Hash, |
| 210 |
Ord, |
| 211 |
PartialEq<Date>, |
| 212 |
PartialOrd<Date>, |
| 213 |
Serialize, |
| 214 |
Sub<Date, Output = SignedDuration>, |
| 215 |
Sub<SignedDuration, Output = Date>, |
| 216 |
Sub<StdDuration, Output = Date>, |
| 217 |
SubAssign<SignedDuration>, |
| 218 |
SubAssign<StdDuration>, |
| 219 |
TryFrom<Parsed, Error = error::TryFromParsed>, |
| 220 |
Copy, |
| 221 |
Eq, |
| 222 |
RefUnwindSafe, |
| 223 |
Send, |
| 224 |
Sync, |
| 225 |
Unpin, |
| 226 |
UnwindSafe, |
| 227 |
} |
| 228 |
assert_impl! { @'a; SignedDuration: |
| 229 |
Add<SignedDuration, Output = SignedDuration>, |
| 230 |
Add<StdDuration, Output = SignedDuration>, |
| 231 |
AddAssign<SignedDuration>, |
| 232 |
AddAssign<StdDuration>, |
| 233 |
Arbitrary, |
| 234 |
Clone, |
| 235 |
Debug, |
| 236 |
Default, |
| 237 |
Deserialize<'a>, |
| 238 |
Div<SignedDuration, Output = f64>, |
| 239 |
Div<StdDuration, Output = f64>, |
| 240 |
Div<f32, Output = SignedDuration>, |
| 241 |
Div<f64, Output = SignedDuration>, |
| 242 |
Div<i16, Output = SignedDuration>, |
| 243 |
Div<i32, Output = SignedDuration>, |
| 244 |
Div<i8, Output = SignedDuration>, |
| 245 |
Div<u16, Output = SignedDuration>, |
| 246 |
Div<u32, Output = SignedDuration>, |
| 247 |
Div<u8, Output = SignedDuration>, |
| 248 |
DivAssign<f32>, |
| 249 |
DivAssign<f64>, |
| 250 |
DivAssign<i16>, |
| 251 |
DivAssign<i32>, |
| 252 |
DivAssign<i8>, |
| 253 |
DivAssign<u16>, |
| 254 |
DivAssign<u32>, |
| 255 |
DivAssign<u8>, |
| 256 |
Hash, |
| 257 |
Mul<f32, Output = SignedDuration>, |
| 258 |
Mul<f64, Output = SignedDuration>, |
| 259 |
Mul<i16, Output = SignedDuration>, |
| 260 |
Mul<i32, Output = SignedDuration>, |
| 261 |
Mul<i8, Output = SignedDuration>, |
| 262 |
Mul<u16, Output = SignedDuration>, |
| 263 |
Mul<u32, Output = SignedDuration>, |
| 264 |
Mul<u8, Output = SignedDuration>, |
| 265 |
MulAssign<f32>, |
| 266 |
MulAssign<f64>, |
| 267 |
MulAssign<i16>, |
| 268 |
MulAssign<i32>, |
| 269 |
MulAssign<i8>, |
| 270 |
MulAssign<u16>, |
| 271 |
MulAssign<u32>, |
| 272 |
MulAssign<u8>, |
| 273 |
Neg<Output = SignedDuration>, |
| 274 |
Ord, |
| 275 |
PartialEq<SignedDuration>, |
| 276 |
PartialEq<StdDuration>, |
| 277 |
PartialOrd<SignedDuration>, |
| 278 |
PartialOrd<StdDuration>, |
| 279 |
Serialize, |
| 280 |
Sub<SignedDuration, Output = SignedDuration>, |
| 281 |
Sub<StdDuration, Output = SignedDuration>, |
| 282 |
SubAssign<SignedDuration>, |
| 283 |
SubAssign<StdDuration>, |
| 284 |
Sum<&'a SignedDuration>, |
| 285 |
Sum<SignedDuration>, |
| 286 |
TryFrom<StdDuration, Error = error::ConversionRange>, |
| 287 |
Copy, |
| 288 |
Eq, |
| 289 |
RefUnwindSafe, |
| 290 |
Send, |
| 291 |
Sync, |
| 292 |
Unpin, |
| 293 |
UnwindSafe, |
| 294 |
} |
| 295 |
assert_impl! { #[expect(deprecated)] Instant: |
| 296 |
Add<SignedDuration, Output = Instant>, |
| 297 |
Add<StdDuration, Output = Instant>, |
| 298 |
AddAssign<SignedDuration>, |
| 299 |
AddAssign<StdDuration>, |
| 300 |
AsRef<StdInstant>, |
| 301 |
Borrow<StdInstant>, |
| 302 |
Clone, |
| 303 |
Debug, |
| 304 |
From<StdInstant>, |
| 305 |
Hash, |
| 306 |
Ord, |
| 307 |
PartialEq<Instant>, |
| 308 |
PartialEq<StdInstant>, |
| 309 |
PartialOrd<Instant>, |
| 310 |
PartialOrd<StdInstant>, |
| 311 |
Sub<SignedDuration, Output = Instant>, |
| 312 |
Sub<StdDuration, Output = Instant>, |
| 313 |
Sub<Instant, Output = SignedDuration>, |
| 314 |
Sub<StdInstant, Output = SignedDuration>, |
| 315 |
SubAssign<SignedDuration>, |
| 316 |
SubAssign<StdDuration>, |
| 317 |
Copy, |
| 318 |
Eq, |
| 319 |
RefUnwindSafe, |
| 320 |
Send, |
| 321 |
Sync, |
| 322 |
Unpin, |
| 323 |
UnwindSafe, |
| 324 |
} |
| 325 |
assert_impl! { @'a; OffsetDateTime: |
| 326 |
Add<SignedDuration, Output = OffsetDateTime>, |
| 327 |
Add<StdDuration, Output = OffsetDateTime>, |
| 328 |
AddAssign<SignedDuration>, |
| 329 |
AddAssign<StdDuration>, |
| 330 |
Arbitrary, |
| 331 |
Clone, |
| 332 |
Debug, |
| 333 |
Deserialize<'a>, |
| 334 |
Display, |
| 335 |
From<SystemTime>, |
| 336 |
Hash, |
| 337 |
Ord, |
| 338 |
PartialEq<OffsetDateTime>, |
| 339 |
PartialEq<SystemTime>, |
| 340 |
PartialOrd<OffsetDateTime>, |
| 341 |
PartialOrd<SystemTime>, |
| 342 |
Serialize, |
| 343 |
Sub<OffsetDateTime, Output = SignedDuration>, |
| 344 |
Sub<SystemTime, Output = SignedDuration>, |
| 345 |
Sub<SignedDuration, Output = OffsetDateTime>, |
| 346 |
Sub<StdDuration, Output = OffsetDateTime>, |
| 347 |
SubAssign<SignedDuration>, |
| 348 |
SubAssign<StdDuration>, |
| 349 |
TryFrom<Parsed, Error = error::TryFromParsed>, |
| 350 |
Copy, |
| 351 |
Eq, |
| 352 |
RefUnwindSafe, |
| 353 |
Send, |
| 354 |
Sync, |
| 355 |
Unpin, |
| 356 |
UnwindSafe, |
| 357 |
} |
| 358 |
assert_impl! { @'a; PlainDateTime: |
| 359 |
Add<SignedDuration, Output = PlainDateTime>, |
| 360 |
Add<StdDuration, Output = PlainDateTime>, |
| 361 |
AddAssign<SignedDuration>, |
| 362 |
AddAssign<StdDuration>, |
| 363 |
Arbitrary, |
| 364 |
Clone, |
| 365 |
Debug, |
| 366 |
Deserialize<'a>, |
| 367 |
Display, |
| 368 |
Hash, |
| 369 |
Ord, |
| 370 |
PartialEq<PlainDateTime>, |
| 371 |
PartialOrd<PlainDateTime>, |
| 372 |
Serialize, |
| 373 |
Sub<SignedDuration, Output = PlainDateTime>, |
| 374 |
Sub<StdDuration, Output = PlainDateTime>, |
| 375 |
Sub<PlainDateTime>, |
| 376 |
SubAssign<SignedDuration>, |
| 377 |
SubAssign<StdDuration>, |
| 378 |
TryFrom<Parsed, Error = error::TryFromParsed>, |
| 379 |
Copy, |
| 380 |
Eq, |
| 381 |
RefUnwindSafe, |
| 382 |
Send, |
| 383 |
Sync, |
| 384 |
Unpin, |
| 385 |
UnwindSafe, |
| 386 |
} |
| 387 |
assert_impl! { @'a; UtcDateTime: |
| 388 |
Add<SignedDuration, Output = UtcDateTime>, |
| 389 |
Add<StdDuration, Output = UtcDateTime>, |
| 390 |
AddAssign<SignedDuration>, |
| 391 |
AddAssign<StdDuration>, |
| 392 |
Arbitrary, |
| 393 |
Clone, |
| 394 |
Debug, |
| 395 |
Deserialize<'a>, |
| 396 |
Display, |
| 397 |
Hash, |
| 398 |
Ord, |
| 399 |
PartialEq<UtcDateTime>, |
| 400 |
PartialEq<OffsetDateTime>, |
| 401 |
PartialEq<SystemTime>, |
| 402 |
PartialOrd<UtcDateTime>, |
| 403 |
PartialOrd<OffsetDateTime>, |
| 404 |
PartialOrd<SystemTime>, |
| 405 |
Serialize, |
| 406 |
Sub<SignedDuration, Output = UtcDateTime>, |
| 407 |
Sub<StdDuration, Output = UtcDateTime>, |
| 408 |
Sub<UtcDateTime>, |
| 409 |
Sub<OffsetDateTime>, |
| 410 |
SubAssign<SignedDuration>, |
| 411 |
SubAssign<StdDuration>, |
| 412 |
TryFrom<Parsed, Error = error::TryFromParsed>, |
| 413 |
Copy, |
| 414 |
Eq, |
| 415 |
RefUnwindSafe, |
| 416 |
Send, |
| 417 |
Sync, |
| 418 |
Unpin, |
| 419 |
UnwindSafe, |
| 420 |
} |
| 421 |
assert_impl! { @'a; Time: |
| 422 |
Add<SignedDuration, Output = Time>, |
| 423 |
Add<StdDuration, Output = Time>, |
| 424 |
AddAssign<SignedDuration>, |
| 425 |
AddAssign<StdDuration>, |
| 426 |
Arbitrary, |
| 427 |
Clone, |
| 428 |
Debug, |
| 429 |
Deserialize<'a>, |
| 430 |
Display, |
| 431 |
Hash, |
| 432 |
Ord, |
| 433 |
PartialEq<Time>, |
| 434 |
PartialOrd<Time>, |
| 435 |
Serialize, |
| 436 |
Sub<SignedDuration, Output = Time>, |
| 437 |
Sub<StdDuration, Output = Time>, |
| 438 |
Sub<Time, Output = SignedDuration>, |
| 439 |
SubAssign<SignedDuration>, |
| 440 |
SubAssign<StdDuration>, |
| 441 |
TryFrom<Parsed, Error = error::TryFromParsed>, |
| 442 |
Copy, |
| 443 |
Eq, |
| 444 |
RefUnwindSafe, |
| 445 |
Send, |
| 446 |
Sync, |
| 447 |
Unpin, |
| 448 |
UnwindSafe, |
| 449 |
} |
| 450 |
assert_impl! { @'a; UtcOffset: |
| 451 |
Arbitrary, |
| 452 |
Clone, |
| 453 |
Debug, |
| 454 |
Deserialize<'a>, |
| 455 |
Display, |
| 456 |
Hash, |
| 457 |
Neg, |
| 458 |
Ord, |
| 459 |
PartialEq<UtcOffset>, |
| 460 |
PartialOrd<UtcOffset>, |
| 461 |
Serialize, |
| 462 |
TryFrom<Parsed, Error = error::TryFromParsed>, |
| 463 |
Copy, |
| 464 |
Eq, |
| 465 |
RefUnwindSafe, |
| 466 |
Send, |
| 467 |
Sync, |
| 468 |
Unpin, |
| 469 |
UnwindSafe, |
| 470 |
} |
| 471 |
assert_impl! { error::ComponentRange: |
| 472 |
Clone, |
| 473 |
Debug, |
| 474 |
Display, |
| 475 |
StdError, |
| 476 |
serde::de::Expected, |
| 477 |
Hash, |
| 478 |
PartialEq<error::ComponentRange>, |
| 479 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 480 |
TryFrom<error::TryFromParsed, Error = error::DifferentVariant>, |
| 481 |
Copy, |
| 482 |
Eq, |
| 483 |
RefUnwindSafe, |
| 484 |
Send, |
| 485 |
Sync, |
| 486 |
Unpin, |
| 487 |
UnwindSafe, |
| 488 |
} |
| 489 |
assert_impl! { error::ConversionRange: |
| 490 |
Clone, |
| 491 |
Debug, |
| 492 |
Display, |
| 493 |
StdError, |
| 494 |
PartialEq<error::ConversionRange>, |
| 495 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 496 |
Copy, |
| 497 |
Eq, |
| 498 |
RefUnwindSafe, |
| 499 |
Send, |
| 500 |
Sync, |
| 501 |
Unpin, |
| 502 |
UnwindSafe, |
| 503 |
} |
| 504 |
assert_impl! { error::DifferentVariant: |
| 505 |
Clone, |
| 506 |
Debug, |
| 507 |
Display, |
| 508 |
StdError, |
| 509 |
PartialEq<error::DifferentVariant>, |
| 510 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 511 |
Copy, |
| 512 |
Eq, |
| 513 |
RefUnwindSafe, |
| 514 |
Send, |
| 515 |
Sync, |
| 516 |
Unpin, |
| 517 |
UnwindSafe, |
| 518 |
} |
| 519 |
assert_impl! { error::IndeterminateOffset: |
| 520 |
Clone, |
| 521 |
Debug, |
| 522 |
Display, |
| 523 |
StdError, |
| 524 |
PartialEq<error::IndeterminateOffset>, |
| 525 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 526 |
Copy, |
| 527 |
Eq, |
| 528 |
RefUnwindSafe, |
| 529 |
Send, |
| 530 |
Sync, |
| 531 |
Unpin, |
| 532 |
UnwindSafe, |
| 533 |
} |
| 534 |
assert_impl! { modifier::Day: |
| 535 |
Clone, |
| 536 |
Debug, |
| 537 |
Default, |
| 538 |
PartialEq<modifier::Day>, |
| 539 |
Copy, |
| 540 |
Eq, |
| 541 |
RefUnwindSafe, |
| 542 |
Send, |
| 543 |
Sync, |
| 544 |
Unpin, |
| 545 |
UnwindSafe, |
| 546 |
} |
| 547 |
assert_impl! { modifier::Hour12: |
| 548 |
Clone, |
| 549 |
Debug, |
| 550 |
Default, |
| 551 |
PartialEq<modifier::Hour12>, |
| 552 |
Copy, |
| 553 |
Eq, |
| 554 |
RefUnwindSafe, |
| 555 |
Send, |
| 556 |
Sync, |
| 557 |
Unpin, |
| 558 |
UnwindSafe, |
| 559 |
} |
| 560 |
assert_impl! { modifier::Hour24: |
| 561 |
Clone, |
| 562 |
Debug, |
| 563 |
Default, |
| 564 |
PartialEq<modifier::Hour24>, |
| 565 |
Copy, |
| 566 |
Eq, |
| 567 |
RefUnwindSafe, |
| 568 |
Send, |
| 569 |
Sync, |
| 570 |
Unpin, |
| 571 |
UnwindSafe, |
| 572 |
} |
| 573 |
assert_impl! { #[expect(deprecated)] modifier::Hour: |
| 574 |
Clone, |
| 575 |
Debug, |
| 576 |
Default, |
| 577 |
PartialEq<modifier::Hour>, |
| 578 |
Copy, |
| 579 |
Eq, |
| 580 |
RefUnwindSafe, |
| 581 |
Send, |
| 582 |
Sync, |
| 583 |
Unpin, |
| 584 |
UnwindSafe, |
| 585 |
} |
| 586 |
assert_impl! { modifier::Minute: |
| 587 |
Clone, |
| 588 |
Debug, |
| 589 |
Default, |
| 590 |
PartialEq<modifier::Minute>, |
| 591 |
Copy, |
| 592 |
Eq, |
| 593 |
RefUnwindSafe, |
| 594 |
Send, |
| 595 |
Sync, |
| 596 |
Unpin, |
| 597 |
UnwindSafe, |
| 598 |
} |
| 599 |
assert_impl! { modifier::MonthNumerical: |
| 600 |
Clone, |
| 601 |
Debug, |
| 602 |
Default, |
| 603 |
PartialEq<modifier::MonthNumerical>, |
| 604 |
Copy, |
| 605 |
Eq, |
| 606 |
RefUnwindSafe, |
| 607 |
Send, |
| 608 |
Sync, |
| 609 |
Unpin, |
| 610 |
UnwindSafe, |
| 611 |
} |
| 612 |
assert_impl! { modifier::MonthShort: |
| 613 |
Clone, |
| 614 |
Debug, |
| 615 |
Default, |
| 616 |
PartialEq<modifier::MonthShort>, |
| 617 |
Copy, |
| 618 |
Eq, |
| 619 |
RefUnwindSafe, |
| 620 |
Send, |
| 621 |
Sync, |
| 622 |
Unpin, |
| 623 |
UnwindSafe, |
| 624 |
} |
| 625 |
assert_impl! { modifier::MonthLong: |
| 626 |
Clone, |
| 627 |
Debug, |
| 628 |
Default, |
| 629 |
PartialEq<modifier::MonthLong>, |
| 630 |
Copy, |
| 631 |
Eq, |
| 632 |
RefUnwindSafe, |
| 633 |
Send, |
| 634 |
Sync, |
| 635 |
Unpin, |
| 636 |
UnwindSafe, |
| 637 |
} |
| 638 |
assert_impl! { #[expect(deprecated)] modifier::Month: |
| 639 |
Clone, |
| 640 |
Debug, |
| 641 |
Default, |
| 642 |
PartialEq<modifier::Month>, |
| 643 |
Copy, |
| 644 |
Eq, |
| 645 |
RefUnwindSafe, |
| 646 |
Send, |
| 647 |
Sync, |
| 648 |
Unpin, |
| 649 |
UnwindSafe, |
| 650 |
} |
| 651 |
assert_impl! { modifier::OffsetHour: |
| 652 |
Clone, |
| 653 |
Debug, |
| 654 |
Default, |
| 655 |
PartialEq<modifier::OffsetHour>, |
| 656 |
Copy, |
| 657 |
Eq, |
| 658 |
RefUnwindSafe, |
| 659 |
Send, |
| 660 |
Sync, |
| 661 |
Unpin, |
| 662 |
UnwindSafe, |
| 663 |
} |
| 664 |
assert_impl! { modifier::OffsetMinute: |
| 665 |
Clone, |
| 666 |
Debug, |
| 667 |
Default, |
| 668 |
PartialEq<modifier::OffsetMinute>, |
| 669 |
Copy, |
| 670 |
Eq, |
| 671 |
RefUnwindSafe, |
| 672 |
Send, |
| 673 |
Sync, |
| 674 |
Unpin, |
| 675 |
UnwindSafe, |
| 676 |
} |
| 677 |
assert_impl! { modifier::OffsetSecond: |
| 678 |
Clone, |
| 679 |
Debug, |
| 680 |
Default, |
| 681 |
PartialEq<modifier::OffsetSecond>, |
| 682 |
Copy, |
| 683 |
Eq, |
| 684 |
RefUnwindSafe, |
| 685 |
Send, |
| 686 |
Sync, |
| 687 |
Unpin, |
| 688 |
UnwindSafe, |
| 689 |
} |
| 690 |
assert_impl! { modifier::Ordinal: |
| 691 |
Clone, |
| 692 |
Debug, |
| 693 |
Default, |
| 694 |
PartialEq<modifier::Ordinal>, |
| 695 |
Copy, |
| 696 |
Eq, |
| 697 |
RefUnwindSafe, |
| 698 |
Send, |
| 699 |
Sync, |
| 700 |
Unpin, |
| 701 |
UnwindSafe, |
| 702 |
} |
| 703 |
assert_impl! { modifier::Period: |
| 704 |
Clone, |
| 705 |
Debug, |
| 706 |
Default, |
| 707 |
PartialEq<modifier::Period>, |
| 708 |
Copy, |
| 709 |
Eq, |
| 710 |
RefUnwindSafe, |
| 711 |
Send, |
| 712 |
Sync, |
| 713 |
Unpin, |
| 714 |
UnwindSafe, |
| 715 |
} |
| 716 |
assert_impl! { modifier::Second: |
| 717 |
Clone, |
| 718 |
Debug, |
| 719 |
Default, |
| 720 |
PartialEq<modifier::Second>, |
| 721 |
Copy, |
| 722 |
Eq, |
| 723 |
RefUnwindSafe, |
| 724 |
Send, |
| 725 |
Sync, |
| 726 |
Unpin, |
| 727 |
UnwindSafe, |
| 728 |
} |
| 729 |
assert_impl! { modifier::Subsecond: |
| 730 |
Clone, |
| 731 |
Debug, |
| 732 |
Default, |
| 733 |
PartialEq<modifier::Subsecond>, |
| 734 |
Copy, |
| 735 |
Eq, |
| 736 |
RefUnwindSafe, |
| 737 |
Send, |
| 738 |
Sync, |
| 739 |
Unpin, |
| 740 |
UnwindSafe, |
| 741 |
} |
| 742 |
assert_impl! { modifier::WeekNumberIso: |
| 743 |
Clone, |
| 744 |
Debug, |
| 745 |
Default, |
| 746 |
PartialEq<modifier::WeekNumberIso>, |
| 747 |
Copy, |
| 748 |
Eq, |
| 749 |
RefUnwindSafe, |
| 750 |
Send, |
| 751 |
Sync, |
| 752 |
Unpin, |
| 753 |
UnwindSafe, |
| 754 |
} |
| 755 |
assert_impl! { modifier::WeekNumberSunday: |
| 756 |
Clone, |
| 757 |
Debug, |
| 758 |
Default, |
| 759 |
PartialEq<modifier::WeekNumberSunday>, |
| 760 |
Copy, |
| 761 |
Eq, |
| 762 |
RefUnwindSafe, |
| 763 |
Send, |
| 764 |
Sync, |
| 765 |
Unpin, |
| 766 |
UnwindSafe, |
| 767 |
} |
| 768 |
assert_impl! { modifier::WeekNumberMonday: |
| 769 |
Clone, |
| 770 |
Debug, |
| 771 |
Default, |
| 772 |
PartialEq<modifier::WeekNumberMonday>, |
| 773 |
Copy, |
| 774 |
Eq, |
| 775 |
RefUnwindSafe, |
| 776 |
Send, |
| 777 |
Sync, |
| 778 |
Unpin, |
| 779 |
UnwindSafe, |
| 780 |
} |
| 781 |
assert_impl! { #[expect(deprecated)] modifier::WeekNumber: |
| 782 |
Clone, |
| 783 |
Debug, |
| 784 |
Default, |
| 785 |
PartialEq<modifier::WeekNumber>, |
| 786 |
Copy, |
| 787 |
Eq, |
| 788 |
RefUnwindSafe, |
| 789 |
Send, |
| 790 |
Sync, |
| 791 |
Unpin, |
| 792 |
UnwindSafe, |
| 793 |
} |
| 794 |
assert_impl! { modifier::WeekdayShort: |
| 795 |
Clone, |
| 796 |
Debug, |
| 797 |
Default, |
| 798 |
PartialEq<modifier::WeekdayShort>, |
| 799 |
Copy, |
| 800 |
Eq, |
| 801 |
RefUnwindSafe, |
| 802 |
Send, |
| 803 |
Sync, |
| 804 |
Unpin, |
| 805 |
UnwindSafe, |
| 806 |
} |
| 807 |
assert_impl! { modifier::WeekdayLong: |
| 808 |
Clone, |
| 809 |
Debug, |
| 810 |
Default, |
| 811 |
PartialEq<modifier::WeekdayLong>, |
| 812 |
Copy, |
| 813 |
Eq, |
| 814 |
RefUnwindSafe, |
| 815 |
Send, |
| 816 |
Sync, |
| 817 |
Unpin, |
| 818 |
UnwindSafe, |
| 819 |
} |
| 820 |
assert_impl! { modifier::WeekdaySunday: |
| 821 |
Clone, |
| 822 |
Debug, |
| 823 |
Default, |
| 824 |
PartialEq<modifier::WeekdaySunday>, |
| 825 |
Copy, |
| 826 |
Eq, |
| 827 |
RefUnwindSafe, |
| 828 |
Send, |
| 829 |
Sync, |
| 830 |
Unpin, |
| 831 |
UnwindSafe, |
| 832 |
} |
| 833 |
assert_impl! { modifier::WeekdayMonday: |
| 834 |
Clone, |
| 835 |
Debug, |
| 836 |
Default, |
| 837 |
PartialEq<modifier::WeekdayMonday>, |
| 838 |
Copy, |
| 839 |
Eq, |
| 840 |
RefUnwindSafe, |
| 841 |
Send, |
| 842 |
Sync, |
| 843 |
Unpin, |
| 844 |
UnwindSafe, |
| 845 |
} |
| 846 |
assert_impl! { #[expect(deprecated)] modifier::Weekday: |
| 847 |
Clone, |
| 848 |
Debug, |
| 849 |
Default, |
| 850 |
PartialEq<modifier::Weekday>, |
| 851 |
Copy, |
| 852 |
Eq, |
| 853 |
RefUnwindSafe, |
| 854 |
Send, |
| 855 |
Sync, |
| 856 |
Unpin, |
| 857 |
UnwindSafe, |
| 858 |
} |
| 859 |
assert_impl! { modifier::CalendarYearFullExtendedRange: |
| 860 |
Clone, |
| 861 |
Debug, |
| 862 |
Default, |
| 863 |
PartialEq<modifier::CalendarYearFullExtendedRange>, |
| 864 |
Copy, |
| 865 |
Eq, |
| 866 |
RefUnwindSafe, |
| 867 |
Send, |
| 868 |
Sync, |
| 869 |
Unpin, |
| 870 |
UnwindSafe, |
| 871 |
} |
| 872 |
assert_impl! { modifier::CalendarYearFullStandardRange: |
| 873 |
Clone, |
| 874 |
Debug, |
| 875 |
Default, |
| 876 |
PartialEq<modifier::CalendarYearFullStandardRange>, |
| 877 |
Copy, |
| 878 |
Eq, |
| 879 |
RefUnwindSafe, |
| 880 |
Send, |
| 881 |
Sync, |
| 882 |
Unpin, |
| 883 |
UnwindSafe, |
| 884 |
} |
| 885 |
assert_impl! { modifier::IsoYearFullExtendedRange: |
| 886 |
Clone, |
| 887 |
Debug, |
| 888 |
Default, |
| 889 |
PartialEq<modifier::IsoYearFullExtendedRange>, |
| 890 |
Copy, |
| 891 |
Eq, |
| 892 |
RefUnwindSafe, |
| 893 |
Send, |
| 894 |
Sync, |
| 895 |
Unpin, |
| 896 |
UnwindSafe, |
| 897 |
} |
| 898 |
assert_impl! { modifier::IsoYearFullStandardRange: |
| 899 |
Clone, |
| 900 |
Debug, |
| 901 |
Default, |
| 902 |
PartialEq<modifier::IsoYearFullStandardRange>, |
| 903 |
Copy, |
| 904 |
Eq, |
| 905 |
RefUnwindSafe, |
| 906 |
Send, |
| 907 |
Sync, |
| 908 |
Unpin, |
| 909 |
UnwindSafe, |
| 910 |
} |
| 911 |
assert_impl! { modifier::CalendarYearCenturyExtendedRange: |
| 912 |
Clone, |
| 913 |
Debug, |
| 914 |
Default, |
| 915 |
PartialEq<modifier::CalendarYearCenturyExtendedRange>, |
| 916 |
Copy, |
| 917 |
Eq, |
| 918 |
RefUnwindSafe, |
| 919 |
Send, |
| 920 |
Sync, |
| 921 |
Unpin, |
| 922 |
UnwindSafe, |
| 923 |
} |
| 924 |
assert_impl! { modifier::CalendarYearCenturyStandardRange: |
| 925 |
Clone, |
| 926 |
Debug, |
| 927 |
Default, |
| 928 |
PartialEq<modifier::CalendarYearCenturyStandardRange>, |
| 929 |
Copy, |
| 930 |
Eq, |
| 931 |
RefUnwindSafe, |
| 932 |
Send, |
| 933 |
Sync, |
| 934 |
Unpin, |
| 935 |
UnwindSafe, |
| 936 |
} |
| 937 |
assert_impl! { modifier::IsoYearCenturyExtendedRange: |
| 938 |
Clone, |
| 939 |
Debug, |
| 940 |
Default, |
| 941 |
PartialEq<modifier::IsoYearCenturyExtendedRange>, |
| 942 |
Copy, |
| 943 |
Eq, |
| 944 |
RefUnwindSafe, |
| 945 |
Send, |
| 946 |
Sync, |
| 947 |
Unpin, |
| 948 |
UnwindSafe, |
| 949 |
} |
| 950 |
assert_impl! { modifier::IsoYearCenturyStandardRange: |
| 951 |
Clone, |
| 952 |
Debug, |
| 953 |
Default, |
| 954 |
PartialEq<modifier::IsoYearCenturyStandardRange>, |
| 955 |
Copy, |
| 956 |
Eq, |
| 957 |
RefUnwindSafe, |
| 958 |
Send, |
| 959 |
Sync, |
| 960 |
Unpin, |
| 961 |
UnwindSafe, |
| 962 |
} |
| 963 |
assert_impl! { modifier::CalendarYearLastTwo: |
| 964 |
Clone, |
| 965 |
Debug, |
| 966 |
Default, |
| 967 |
PartialEq<modifier::CalendarYearLastTwo>, |
| 968 |
Copy, |
| 969 |
Eq, |
| 970 |
RefUnwindSafe, |
| 971 |
Send, |
| 972 |
Sync, |
| 973 |
Unpin, |
| 974 |
UnwindSafe, |
| 975 |
} |
| 976 |
assert_impl! { modifier::IsoYearLastTwo: |
| 977 |
Clone, |
| 978 |
Debug, |
| 979 |
Default, |
| 980 |
PartialEq<modifier::IsoYearLastTwo>, |
| 981 |
Copy, |
| 982 |
Eq, |
| 983 |
RefUnwindSafe, |
| 984 |
Send, |
| 985 |
Sync, |
| 986 |
Unpin, |
| 987 |
UnwindSafe, |
| 988 |
} |
| 989 |
assert_impl! { #[expect(deprecated)] modifier::Year: |
| 990 |
Clone, |
| 991 |
Debug, |
| 992 |
Default, |
| 993 |
PartialEq<modifier::Year>, |
| 994 |
Copy, |
| 995 |
Eq, |
| 996 |
RefUnwindSafe, |
| 997 |
Send, |
| 998 |
Sync, |
| 999 |
Unpin, |
| 1000 |
UnwindSafe, |
| 1001 |
} |
| 1002 |
assert_impl! { well_known::Rfc2822: |
| 1003 |
Clone, |
| 1004 |
Debug, |
| 1005 |
PartialEq<well_known::Rfc2822>, |
| 1006 |
Copy, |
| 1007 |
Eq, |
| 1008 |
Formattable, |
| 1009 |
Parsable, |
| 1010 |
RefUnwindSafe, |
| 1011 |
Send, |
| 1012 |
Sync, |
| 1013 |
Unpin, |
| 1014 |
UnwindSafe, |
| 1015 |
} |
| 1016 |
assert_impl! { well_known::Rfc3339: |
| 1017 |
Clone, |
| 1018 |
Debug, |
| 1019 |
PartialEq<well_known::Rfc3339>, |
| 1020 |
Copy, |
| 1021 |
Eq, |
| 1022 |
Formattable, |
| 1023 |
Parsable, |
| 1024 |
RefUnwindSafe, |
| 1025 |
Send, |
| 1026 |
Sync, |
| 1027 |
Unpin, |
| 1028 |
UnwindSafe, |
| 1029 |
} |
| 1030 |
assert_impl! { well_known::Iso8601::<{ iso8601::Config::DEFAULT.encode() }>: |
| 1031 |
Clone, |
| 1032 |
Debug, |
| 1033 |
PartialEq<well_known::Iso8601<{ iso8601::Config::DEFAULT.encode() }>>, |
| 1034 |
Copy, |
| 1035 |
Eq, |
| 1036 |
Formattable, |
| 1037 |
Parsable, |
| 1038 |
RefUnwindSafe, |
| 1039 |
Send, |
| 1040 |
Sync, |
| 1041 |
Unpin, |
| 1042 |
UnwindSafe, |
| 1043 |
} |
| 1044 |
assert_impl! { iso8601::Config: |
| 1045 |
Debug, |
| 1046 |
RefUnwindSafe, |
| 1047 |
Send, |
| 1048 |
Sync, |
| 1049 |
Unpin, |
| 1050 |
UnwindSafe, |
| 1051 |
} |
| 1052 |
assert_impl! { iso8601::DateKind: |
| 1053 |
Clone, |
| 1054 |
Debug, |
| 1055 |
PartialEq<iso8601::DateKind>, |
| 1056 |
Copy, |
| 1057 |
Eq, |
| 1058 |
RefUnwindSafe, |
| 1059 |
Send, |
| 1060 |
Sync, |
| 1061 |
Unpin, |
| 1062 |
UnwindSafe, |
| 1063 |
} |
| 1064 |
assert_impl! { iso8601::FormattedComponents: |
| 1065 |
Clone, |
| 1066 |
Debug, |
| 1067 |
PartialEq<iso8601::FormattedComponents>, |
| 1068 |
Copy, |
| 1069 |
Eq, |
| 1070 |
RefUnwindSafe, |
| 1071 |
Send, |
| 1072 |
Sync, |
| 1073 |
Unpin, |
| 1074 |
UnwindSafe, |
| 1075 |
} |
| 1076 |
assert_impl! { iso8601::OffsetPrecision: |
| 1077 |
Clone, |
| 1078 |
Debug, |
| 1079 |
PartialEq<iso8601::OffsetPrecision>, |
| 1080 |
Copy, |
| 1081 |
Eq, |
| 1082 |
RefUnwindSafe, |
| 1083 |
Send, |
| 1084 |
Sync, |
| 1085 |
Unpin, |
| 1086 |
UnwindSafe, |
| 1087 |
} |
| 1088 |
assert_impl! { iso8601::TimePrecision: |
| 1089 |
Clone, |
| 1090 |
Debug, |
| 1091 |
PartialEq<iso8601::TimePrecision>, |
| 1092 |
Copy, |
| 1093 |
Eq, |
| 1094 |
RefUnwindSafe, |
| 1095 |
Send, |
| 1096 |
Sync, |
| 1097 |
Unpin, |
| 1098 |
UnwindSafe, |
| 1099 |
} |
| 1100 |
assert_impl! { Parsed: |
| 1101 |
Clone, |
| 1102 |
Debug, |
| 1103 |
Copy, |
| 1104 |
RefUnwindSafe, |
| 1105 |
Send, |
| 1106 |
Sync, |
| 1107 |
Unpin, |
| 1108 |
UnwindSafe, |
| 1109 |
} |
| 1110 |
assert_impl! { @'a; Month: |
| 1111 |
Arbitrary, |
| 1112 |
Clone, |
| 1113 |
Debug, |
| 1114 |
Deserialize<'a>, |
| 1115 |
Display, |
| 1116 |
Hash, |
| 1117 |
PartialEq<Month>, |
| 1118 |
TryFrom<u8, Error = error::ComponentRange>, |
| 1119 |
Copy, |
| 1120 |
Eq, |
| 1121 |
RefUnwindSafe, |
| 1122 |
Send, |
| 1123 |
Sync, |
| 1124 |
Unpin, |
| 1125 |
UnwindSafe, |
| 1126 |
} |
| 1127 |
assert_impl! { @'a; Weekday: |
| 1128 |
Arbitrary, |
| 1129 |
Clone, |
| 1130 |
Debug, |
| 1131 |
Deserialize<'a>, |
| 1132 |
Display, |
| 1133 |
Hash, |
| 1134 |
PartialEq<Weekday>, |
| 1135 |
Serialize, |
| 1136 |
Copy, |
| 1137 |
Eq, |
| 1138 |
RefUnwindSafe, |
| 1139 |
Send, |
| 1140 |
Sync, |
| 1141 |
Unpin, |
| 1142 |
UnwindSafe, |
| 1143 |
} |
| 1144 |
assert_impl! { Error: |
| 1145 |
Debug, |
| 1146 |
Display, |
| 1147 |
StdError, |
| 1148 |
From<error::ComponentRange>, |
| 1149 |
From<error::ConversionRange>, |
| 1150 |
From<error::DifferentVariant>, |
| 1151 |
From<error::Format>, |
| 1152 |
From<error::IndeterminateOffset>, |
| 1153 |
From<error::InvalidFormatDescription>, |
| 1154 |
From<error::Parse>, |
| 1155 |
From<error::ParseFromDescription>, |
| 1156 |
From<error::TryFromParsed>, |
| 1157 |
Send, |
| 1158 |
Sync, |
| 1159 |
Unpin, |
| 1160 |
} |
| 1161 |
assert_impl! { error::Format: |
| 1162 |
Debug, |
| 1163 |
Display, |
| 1164 |
StdError, |
| 1165 |
From<std::io::Error>, |
| 1166 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 1167 |
Send, |
| 1168 |
Sync, |
| 1169 |
Unpin, |
| 1170 |
} |
| 1171 |
assert_impl! { error::InvalidFormatDescription: |
| 1172 |
Clone, |
| 1173 |
Debug, |
| 1174 |
Display, |
| 1175 |
StdError, |
| 1176 |
PartialEq<error::InvalidFormatDescription>, |
| 1177 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 1178 |
Eq, |
| 1179 |
RefUnwindSafe, |
| 1180 |
Send, |
| 1181 |
Sync, |
| 1182 |
Unpin, |
| 1183 |
UnwindSafe, |
| 1184 |
} |
| 1185 |
assert_impl! { error::Parse: |
| 1186 |
Clone, |
| 1187 |
Debug, |
| 1188 |
Display, |
| 1189 |
StdError, |
| 1190 |
From<error::ParseFromDescription>, |
| 1191 |
From<error::TryFromParsed>, |
| 1192 |
PartialEq<error::Parse>, |
| 1193 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 1194 |
Copy, |
| 1195 |
Eq, |
| 1196 |
RefUnwindSafe, |
| 1197 |
Send, |
| 1198 |
Sync, |
| 1199 |
Unpin, |
| 1200 |
UnwindSafe, |
| 1201 |
} |
| 1202 |
assert_impl! { error::ParseFromDescription: |
| 1203 |
Clone, |
| 1204 |
Debug, |
| 1205 |
Display, |
| 1206 |
StdError, |
| 1207 |
PartialEq<error::ParseFromDescription>, |
| 1208 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 1209 |
TryFrom<error::Parse, Error = error::DifferentVariant>, |
| 1210 |
Copy, |
| 1211 |
Eq, |
| 1212 |
RefUnwindSafe, |
| 1213 |
Send, |
| 1214 |
Sync, |
| 1215 |
Unpin, |
| 1216 |
UnwindSafe, |
| 1217 |
} |
| 1218 |
assert_impl! { error::TryFromParsed: |
| 1219 |
Clone, |
| 1220 |
Debug, |
| 1221 |
Display, |
| 1222 |
StdError, |
| 1223 |
From<error::ComponentRange>, |
| 1224 |
PartialEq<error::TryFromParsed>, |
| 1225 |
TryFrom<Error, Error = error::DifferentVariant>, |
| 1226 |
TryFrom<error::Parse, Error = error::DifferentVariant>, |
| 1227 |
Copy, |
| 1228 |
Eq, |
| 1229 |
RefUnwindSafe, |
| 1230 |
Send, |
| 1231 |
Sync, |
| 1232 |
Unpin, |
| 1233 |
UnwindSafe, |
| 1234 |
} |
| 1235 |
assert_impl! { @'a; Component: |
| 1236 |
Clone, |
| 1237 |
Debug, |
| 1238 |
PartialEq<Component>, |
| 1239 |
PartialEq<BorrowedFormatItem<'a>>, |
| 1240 |
TryFrom<BorrowedFormatItem<'a>, Error = error::DifferentVariant>, |
| 1241 |
Copy, |
| 1242 |
Eq, |
| 1243 |
RefUnwindSafe, |
| 1244 |
Send, |
| 1245 |
Sync, |
| 1246 |
Unpin, |
| 1247 |
UnwindSafe, |
| 1248 |
} |
| 1249 |
assert_impl! { @'a; BorrowedFormatItem<'_>: |
| 1250 |
Clone, |
| 1251 |
Debug, |
| 1252 |
From<&'a [BorrowedFormatItem<'a>]>, |
| 1253 |
From<Component>, |
| 1254 |
PartialEq<&'a [BorrowedFormatItem<'a>]>, |
| 1255 |
PartialEq<Component>, |
| 1256 |
PartialEq<BorrowedFormatItem<'a>>, |
| 1257 |
Eq, |
| 1258 |
Formattable, |
| 1259 |
Parsable, |
| 1260 |
RefUnwindSafe, |
| 1261 |
Send, |
| 1262 |
Sync, |
| 1263 |
Unpin, |
| 1264 |
UnwindSafe, |
| 1265 |
} |
| 1266 |
assert_impl! { @'a; &[BorrowedFormatItem<'_>]: |
| 1267 |
PartialEq<BorrowedFormatItem<'a>>, |
| 1268 |
TryFrom<BorrowedFormatItem<'a>, Error = error::DifferentVariant>, |
| 1269 |
} |
| 1270 |
assert_impl! { #[expect(deprecated)] modifier::MonthRepr: |
| 1271 |
Clone, |
| 1272 |
Debug, |
| 1273 |
Default, |
| 1274 |
PartialEq<modifier::MonthRepr>, |
| 1275 |
Copy, |
| 1276 |
Eq, |
| 1277 |
RefUnwindSafe, |
| 1278 |
Send, |
| 1279 |
Sync, |
| 1280 |
Unpin, |
| 1281 |
UnwindSafe, |
| 1282 |
} |
| 1283 |
assert_impl! { modifier::Padding: |
| 1284 |
Clone, |
| 1285 |
Debug, |
| 1286 |
Default, |
| 1287 |
PartialEq<modifier::Padding>, |
| 1288 |
Copy, |
| 1289 |
Eq, |
| 1290 |
RefUnwindSafe, |
| 1291 |
Send, |
| 1292 |
Sync, |
| 1293 |
Unpin, |
| 1294 |
UnwindSafe, |
| 1295 |
} |
| 1296 |
assert_impl! { modifier::SubsecondDigits: |
| 1297 |
Clone, |
| 1298 |
Debug, |
| 1299 |
Default, |
| 1300 |
PartialEq<modifier::SubsecondDigits>, |
| 1301 |
Copy, |
| 1302 |
Eq, |
| 1303 |
RefUnwindSafe, |
| 1304 |
Send, |
| 1305 |
Sync, |
| 1306 |
Unpin, |
| 1307 |
UnwindSafe, |
| 1308 |
} |
| 1309 |
assert_impl! { #[expect(deprecated)] modifier::WeekNumberRepr: |
| 1310 |
Clone, |
| 1311 |
Debug, |
| 1312 |
Default, |
| 1313 |
PartialEq<modifier::WeekNumberRepr>, |
| 1314 |
Copy, |
| 1315 |
Eq, |
| 1316 |
RefUnwindSafe, |
| 1317 |
Send, |
| 1318 |
Sync, |
| 1319 |
Unpin, |
| 1320 |
UnwindSafe, |
| 1321 |
} |
| 1322 |
assert_impl! { #[expect(deprecated)] modifier::WeekdayRepr: |
| 1323 |
Clone, |
| 1324 |
Debug, |
| 1325 |
Default, |
| 1326 |
PartialEq<modifier::WeekdayRepr>, |
| 1327 |
Copy, |
| 1328 |
Eq, |
| 1329 |
RefUnwindSafe, |
| 1330 |
Send, |
| 1331 |
Sync, |
| 1332 |
Unpin, |
| 1333 |
UnwindSafe, |
| 1334 |
} |
| 1335 |
assert_impl! { #[expect(deprecated)] modifier::YearRepr: |
| 1336 |
Clone, |
| 1337 |
Debug, |
| 1338 |
Default, |
| 1339 |
PartialEq<modifier::YearRepr>, |
| 1340 |
Copy, |
| 1341 |
Eq, |
| 1342 |
RefUnwindSafe, |
| 1343 |
Send, |
| 1344 |
Sync, |
| 1345 |
Unpin, |
| 1346 |
UnwindSafe, |
| 1347 |
} |
| 1348 |
assert_impl! { StandardRand08: |
| 1349 |
DistributionRand08<Date>, |
| 1350 |
DistributionRand08<SignedDuration>, |
| 1351 |
DistributionRand08<OffsetDateTime>, |
| 1352 |
DistributionRand08<UtcDateTime>, |
| 1353 |
DistributionRand08<PlainDateTime>, |
| 1354 |
DistributionRand08<Time>, |
| 1355 |
DistributionRand08<UtcOffset>, |
| 1356 |
DistributionRand08<Month>, |
| 1357 |
DistributionRand08<Weekday>, |
| 1358 |
} |
| 1359 |
assert_impl! { StandardUniformRand09: |
| 1360 |
DistributionRand09<Date>, |
| 1361 |
DistributionRand09<SignedDuration>, |
| 1362 |
DistributionRand09<OffsetDateTime>, |
| 1363 |
DistributionRand09<UtcDateTime>, |
| 1364 |
DistributionRand09<PlainDateTime>, |
| 1365 |
DistributionRand09<Time>, |
| 1366 |
DistributionRand09<UtcOffset>, |
| 1367 |
DistributionRand09<Month>, |
| 1368 |
DistributionRand09<Weekday>, |
| 1369 |
} |
| 1370 |
assert_impl! { StdDuration: |
| 1371 |
Add<SignedDuration, Output = SignedDuration>, |
| 1372 |
AddAssign<SignedDuration>, |
| 1373 |
Div<SignedDuration, Output = f64>, |
| 1374 |
PartialEq<SignedDuration>, |
| 1375 |
PartialOrd<SignedDuration>, |
| 1376 |
Sub<SignedDuration, Output = SignedDuration>, |
| 1377 |
SubAssign<SignedDuration>, |
| 1378 |
TryFrom<SignedDuration>, |
| 1379 |
} |
| 1380 |
assert_impl! { #[expect(deprecated)] StdInstant: |
| 1381 |
Add<SignedDuration, Output = StdInstant>, |
| 1382 |
AddAssign<SignedDuration>, |
| 1383 |
Sub<SignedDuration, Output = StdInstant>, |
| 1384 |
SubAssign<SignedDuration>, |
| 1385 |
PartialEq<Instant>, |
| 1386 |
PartialOrd<Instant>, |
| 1387 |
From<Instant>, |
| 1388 |
Sub<Instant>, |
| 1389 |
} |
| 1390 |
assert_impl! { SystemTime: |
| 1391 |
Add<SignedDuration, Output = SystemTime>, |
| 1392 |
AddAssign<SignedDuration>, |
| 1393 |
Sub<SignedDuration, Output = SystemTime>, |
| 1394 |
SubAssign<SignedDuration>, |
| 1395 |
From<OffsetDateTime>, |
| 1396 |
PartialEq<OffsetDateTime>, |
| 1397 |
PartialOrd<OffsetDateTime>, |
| 1398 |
Sub<OffsetDateTime>, |
| 1399 |
} |
| 1400 |
assert_impl! { i8: |
| 1401 |
Mul<SignedDuration>, |
| 1402 |
} |
| 1403 |
assert_impl! { i16: |
| 1404 |
Mul<SignedDuration>, |
| 1405 |
} |
| 1406 |
assert_impl! { i32: |
| 1407 |
Mul<SignedDuration>, |
| 1408 |
} |
| 1409 |
assert_impl! { u8: |
| 1410 |
Mul<SignedDuration>, |
| 1411 |
From<Month>, |
| 1412 |
} |
| 1413 |
assert_impl! { u16: |
| 1414 |
Mul<SignedDuration>, |
| 1415 |
} |
| 1416 |
assert_impl! { u32: |
| 1417 |
Mul<SignedDuration>, |
| 1418 |
} |
| 1419 |
assert_impl! { f32: |
| 1420 |
Mul<SignedDuration>, |
| 1421 |
} |
| 1422 |
assert_impl! { f64: |
| 1423 |
Mul<SignedDuration>, |
| 1424 |
} |