Lines Matching refs:Weekday
520 pub use {Datelike, Month, Timelike, Weekday};
646 pub enum Weekday { enum
663 impl Weekday { implementation
670 pub fn succ(&self) -> Weekday { in succ() argument
672 Weekday::Mon => Weekday::Tue, in succ()
673 Weekday::Tue => Weekday::Wed, in succ()
674 Weekday::Wed => Weekday::Thu, in succ()
675 Weekday::Thu => Weekday::Fri, in succ()
676 Weekday::Fri => Weekday::Sat, in succ()
677 Weekday::Sat => Weekday::Sun, in succ()
678 Weekday::Sun => Weekday::Mon, in succ()
688 pub fn pred(&self) -> Weekday { in pred() argument
690 Weekday::Mon => Weekday::Sun, in pred()
691 Weekday::Tue => Weekday::Mon, in pred()
692 Weekday::Wed => Weekday::Tue, in pred()
693 Weekday::Thu => Weekday::Wed, in pred()
694 Weekday::Fri => Weekday::Thu, in pred()
695 Weekday::Sat => Weekday::Fri, in pred()
696 Weekday::Sun => Weekday::Sat, in pred()
708 Weekday::Mon => 1, in number_from_monday()
709 Weekday::Tue => 2, in number_from_monday()
710 Weekday::Wed => 3, in number_from_monday()
711 Weekday::Thu => 4, in number_from_monday()
712 Weekday::Fri => 5, in number_from_monday()
713 Weekday::Sat => 6, in number_from_monday()
714 Weekday::Sun => 7, in number_from_monday()
726 Weekday::Mon => 2, in number_from_sunday()
727 Weekday::Tue => 3, in number_from_sunday()
728 Weekday::Wed => 4, in number_from_sunday()
729 Weekday::Thu => 5, in number_from_sunday()
730 Weekday::Fri => 6, in number_from_sunday()
731 Weekday::Sat => 7, in number_from_sunday()
732 Weekday::Sun => 1, in number_from_sunday()
744 Weekday::Mon => 0, in num_days_from_monday()
745 Weekday::Tue => 1, in num_days_from_monday()
746 Weekday::Wed => 2, in num_days_from_monday()
747 Weekday::Thu => 3, in num_days_from_monday()
748 Weekday::Fri => 4, in num_days_from_monday()
749 Weekday::Sat => 5, in num_days_from_monday()
750 Weekday::Sun => 6, in num_days_from_monday()
762 Weekday::Mon => 1, in num_days_from_sunday()
763 Weekday::Tue => 2, in num_days_from_sunday()
764 Weekday::Wed => 3, in num_days_from_sunday()
765 Weekday::Thu => 4, in num_days_from_sunday()
766 Weekday::Fri => 5, in num_days_from_sunday()
767 Weekday::Sat => 6, in num_days_from_sunday()
768 Weekday::Sun => 0, in num_days_from_sunday()
773 impl fmt::Display for Weekday { implementation
776 Weekday::Mon => "Mon", in fmt()
777 Weekday::Tue => "Tue", in fmt()
778 Weekday::Wed => "Wed", in fmt()
779 Weekday::Thu => "Thu", in fmt()
780 Weekday::Fri => "Fri", in fmt()
781 Weekday::Sat => "Sat", in fmt()
782 Weekday::Sun => "Sun", in fmt()
790 impl num_traits::FromPrimitive for Weekday { implementation
792 fn from_i64(n: i64) -> Option<Weekday> { in from_i64() argument
794 0 => Some(Weekday::Mon), in from_i64()
795 1 => Some(Weekday::Tue), in from_i64()
796 2 => Some(Weekday::Wed), in from_i64()
797 3 => Some(Weekday::Thu), in from_i64()
798 4 => Some(Weekday::Fri), in from_i64()
799 5 => Some(Weekday::Sat), in from_i64()
800 6 => Some(Weekday::Sun), in from_i64()
806 fn from_u64(n: u64) -> Option<Weekday> { in from_u64() argument
808 0 => Some(Weekday::Mon), in from_u64()
809 1 => Some(Weekday::Tue), in from_u64()
810 2 => Some(Weekday::Wed), in from_u64()
811 3 => Some(Weekday::Thu), in from_u64()
812 4 => Some(Weekday::Fri), in from_u64()
813 5 => Some(Weekday::Sat), in from_u64()
814 6 => Some(Weekday::Sun), in from_u64()
838 use super::Weekday;
842 impl ser::Serialize for Weekday { implementation
854 type Value = Weekday;
868 impl<'de> de::Deserialize<'de> for Weekday { implementation
883 use Weekday::*; in test_serde_serialize()
885 let cases: Vec<(Weekday, &str)> = vec![ in test_serde_serialize()
904 use Weekday::*; in test_serde_deserialize()
906 let cases: Vec<(&str, Weekday)> = vec![ in test_serde_deserialize()
926 let weekday = from_str::<Weekday>(str).unwrap(); in test_serde_deserialize()
934 from_str::<Weekday>(str).unwrap_err(); in test_serde_deserialize()
1292 fn weekday(&self) -> Weekday; in weekday() argument