We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SubAssign
1 parent 198ae50 commit 6737e51Copy full SHA for 6737e51
src/duration/mod.rs
@@ -211,6 +211,12 @@ impl Sub for Duration {
211
}
212
213
214
+impl SubAssign for Duration {
215
+ fn sub_assign(&mut self, rhs: Self) {
216
+ self.0.sub_assign(rhs.0)
217
+ }
218
+}
219
+
220
impl Mul<u32> for Duration {
221
type Output = Self;
222
@@ -243,12 +249,6 @@ impl Div<Duration> for u32 {
243
249
244
250
245
251
246
-impl SubAssign for Duration {
247
- fn sub_assign(&mut self, rhs: Self) {
248
- self.0.sub_assign(rhs.0)
- }
-}
-
252
impl Duration {
253
/// Creates a new [`Duration`] from the specified number of whole seconds.
254
pub const fn from_secs(secs: u64) -> Self {
0 commit comments