Searched refs:yo_opt (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/chrono/src/naive/ |
D | date.rs | 1915 let yo_opt = |y, o| NaiveDate::from_yo_opt(y, o); in test_date_from_yo() localVariable 1918 assert_eq!(yo_opt(2012, 0), None); in test_date_from_yo() 1919 assert_eq!(yo_opt(2012, 1), Some(ymd(2012, 1, 1))); in test_date_from_yo() 1920 assert_eq!(yo_opt(2012, 2), Some(ymd(2012, 1, 2))); in test_date_from_yo() 1921 assert_eq!(yo_opt(2012, 32), Some(ymd(2012, 2, 1))); in test_date_from_yo() 1922 assert_eq!(yo_opt(2012, 60), Some(ymd(2012, 2, 29))); in test_date_from_yo() 1923 assert_eq!(yo_opt(2012, 61), Some(ymd(2012, 3, 1))); in test_date_from_yo() 1924 assert_eq!(yo_opt(2012, 100), Some(ymd(2012, 4, 9))); in test_date_from_yo() 1925 assert_eq!(yo_opt(2012, 200), Some(ymd(2012, 7, 18))); in test_date_from_yo() 1926 assert_eq!(yo_opt(2012, 300), Some(ymd(2012, 10, 26))); in test_date_from_yo() [all …]
|
/external/rust/crates/chrono/src/offset/ |
D | mod.rs | 256 self.yo_opt(year, ordinal).unwrap() in yo() 266 fn yo_opt(&self, year: i32, ordinal: u32) -> LocalResult<Date<Self>> { in yo_opt() method
|