Lines Matching refs:Weekday
22 use Weekday;
328 pub fn weekday(&self) -> Weekday { in weekday() argument
330 Weekday::from_u32(((of >> 4) + (of & 0b111)) % 7).unwrap() in weekday()
334 pub fn isoweekdate_raw(&self) -> (u32, Weekday) { in isoweekdate_raw() argument
338 (weekord / 7, Weekday::from_u32(weekord % 7).unwrap()) in isoweekdate_raw()
492 use Weekday;
688 assert_eq!(Of::new(1, A).weekday(), Weekday::Sun); in test_of_weekday()
689 assert_eq!(Of::new(1, B).weekday(), Weekday::Sat); in test_of_weekday()
690 assert_eq!(Of::new(1, C).weekday(), Weekday::Fri); in test_of_weekday()
691 assert_eq!(Of::new(1, D).weekday(), Weekday::Thu); in test_of_weekday()
692 assert_eq!(Of::new(1, E).weekday(), Weekday::Wed); in test_of_weekday()
693 assert_eq!(Of::new(1, F).weekday(), Weekday::Tue); in test_of_weekday()
694 assert_eq!(Of::new(1, G).weekday(), Weekday::Mon); in test_of_weekday()
695 assert_eq!(Of::new(1, AG).weekday(), Weekday::Sun); in test_of_weekday()
696 assert_eq!(Of::new(1, BA).weekday(), Weekday::Sat); in test_of_weekday()
697 assert_eq!(Of::new(1, CB).weekday(), Weekday::Fri); in test_of_weekday()
698 assert_eq!(Of::new(1, DC).weekday(), Weekday::Thu); in test_of_weekday()
699 assert_eq!(Of::new(1, ED).weekday(), Weekday::Wed); in test_of_weekday()
700 assert_eq!(Of::new(1, FE).weekday(), Weekday::Tue); in test_of_weekday()
701 assert_eq!(Of::new(1, GF).weekday(), Weekday::Mon); in test_of_weekday()