Closed amokfa closed 1 year ago
This code doesn't compile:
if now.weekday() < time::Weekday::Wednesday { }
The reason for this is documented.
As order is dependent on context (Sunday could be either two days after or five days before Friday), this type does not implement PartialOrd or Ord.
PartialOrd
Ord
This code doesn't compile: