We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f4ede4 + 416267f commit 3e248aaCopy full SHA for 3e248aa
src/libstd/time/duration.rs
@@ -40,7 +40,7 @@ const MILLIS_PER_SEC: u64 = 1_000;
40
/// let ten_millis = Duration::from_millis(10);
41
/// ```
42
#[stable(feature = "duration", since = "1.3.0")]
43
-#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)]
+#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
44
pub struct Duration {
45
secs: u64,
46
nanos: u32, // Always 0 <= nanos < NANOS_PER_SEC
0 commit comments