Searched refs:checked_sub_signed (Results 1 – 4 of 4) sorted by relevance
237 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<Date<Tz>> { in checked_sub_signed() method238 let date = try_opt!(self.date.checked_sub_signed(rhs)); in checked_sub_signed()454 self.checked_sub_signed(rhs).expect("`Date - Duration` overflowed") in sub()
230 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<DateTime<Tz>> { in checked_sub_signed() method231 let datetime = try_opt!(self.datetime.checked_sub_signed(rhs)); in checked_sub_signed()707 self.checked_sub_signed(rhs).expect("`DateTime - Duration` overflowed") in sub()
568 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<NaiveDateTime> { in checked_sub_signed() method576 let date = try_opt!(self.date.checked_sub_signed(OldDuration::seconds(rhs))); in checked_sub_signed()1325 self.checked_sub_signed(rhs).expect("`NaiveDateTime - Duration` overflowed") in sub()2278 assert_eq!(lhs.checked_sub_signed(-rhs), sum); in test_datetime_add()
925 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<NaiveDate> { in checked_sub_signed() method1514 self.checked_sub_signed(rhs).expect("`NaiveDate - Duration` overflowed") in sub()2187 assert_eq!(lhs.checked_sub_signed(-rhs), sum); in test_date_add()