Searched refs:isoywd_opt (Results 1 – 2 of 2) sorted by relevance
/aosp_15_r20/external/rust/android-crates-io/crates/chrono/src/naive/ |
D | date.rs | 2677 let isoywd_opt = NaiveDate::from_isoywd_opt; in test_date_from_isoywd() localVariable 2680 assert_eq!(isoywd_opt(2004, 0, Weekday::Sun), None); in test_date_from_isoywd() 2681 assert_eq!(isoywd_opt(2004, 1, Weekday::Mon), Some(ymd(2003, 12, 29))); in test_date_from_isoywd() 2682 assert_eq!(isoywd_opt(2004, 1, Weekday::Sun), Some(ymd(2004, 1, 4))); in test_date_from_isoywd() 2683 assert_eq!(isoywd_opt(2004, 2, Weekday::Mon), Some(ymd(2004, 1, 5))); in test_date_from_isoywd() 2684 assert_eq!(isoywd_opt(2004, 2, Weekday::Sun), Some(ymd(2004, 1, 11))); in test_date_from_isoywd() 2685 assert_eq!(isoywd_opt(2004, 52, Weekday::Mon), Some(ymd(2004, 12, 20))); in test_date_from_isoywd() 2686 assert_eq!(isoywd_opt(2004, 52, Weekday::Sun), Some(ymd(2004, 12, 26))); in test_date_from_isoywd() 2687 assert_eq!(isoywd_opt(2004, 53, Weekday::Mon), Some(ymd(2004, 12, 27))); in test_date_from_isoywd() 2688 assert_eq!(isoywd_opt(2004, 53, Weekday::Sun), Some(ymd(2005, 1, 2))); in test_date_from_isoywd() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/chrono/src/offset/ |
D | mod.rs | 321 self.isoywd_opt(year, week, weekday).unwrap() in isoywd() 338 fn isoywd_opt(&self, year: i32, week: u32, weekday: Weekday) -> LocalResult<Date<Self>> { in isoywd_opt() method
|