Searched refs:succ_opt (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/chrono/src/ |
D | date.rs | 178 self.succ_opt().expect("out of bound") in succ() 185 pub fn succ_opt(&self) -> Option<Date<Tz>> { in succ_opt() method 186 self.date.succ_opt().map(|date| Date::from_utc(date, self.offset.clone())) in succ_opt()
|
/external/rust/crates/chrono/src/naive/ |
D | date.rs | 811 self.succ_opt().expect("out of bound") in succ() 829 pub fn succ_opt(&self) -> Option<NaiveDate> { in succ_opt() method 2164 assert_eq!(ymd(2014, 5, 6).succ_opt(), Some(ymd(2014, 5, 7))); in test_date_succ() 2165 assert_eq!(ymd(2014, 5, 31).succ_opt(), Some(ymd(2014, 6, 1))); in test_date_succ() 2166 assert_eq!(ymd(2014, 12, 31).succ_opt(), Some(ymd(2015, 1, 1))); in test_date_succ() 2167 assert_eq!(ymd(2016, 2, 28).succ_opt(), Some(ymd(2016, 2, 29))); in test_date_succ() 2168 assert_eq!(ymd(MAX_DATE.year(), 12, 31).succ_opt(), None); in test_date_succ()
|