Searched refs:from_yo_opt (Results 1 – 3 of 3) sorted by relevance
267 match NaiveDate::from_yo_opt(year, ordinal) { in yo_opt()
431 let date = NaiveDate::from_yo_opt(year, ordinal).ok_or(OUT_OF_RANGE)?; in to_naive_date()441 let newyear = NaiveDate::from_yo_opt(year, 1).ok_or(OUT_OF_RANGE)?; in to_naive_date()475 let newyear = NaiveDate::from_yo_opt(year, 1).ok_or(OUT_OF_RANGE)?; in to_naive_date()
221 NaiveDate::from_yo_opt(year, ordinal).expect("invalid or out-of-range date") in from_yo()244 pub fn from_yo_opt(year: i32, ordinal: u32) -> Option<NaiveDate> { in from_yo_opt() method1915 let yo_opt = |y, o| NaiveDate::from_yo_opt(y, o); in test_date_from_yo()