Lines Matching refs:Section
58 pub enum Section { enum
69 impl From<u8> for Section { implementation
72 0 => Section::NotStarted, in from()
73 1 => Section::Header, in from()
74 2 => Section::Questions, in from()
75 3 => Section::Answers, in from()
76 4 => Section::Authorities, in from()
77 5 => Section::Additionals, in from()
78 _ => Section::Done, in from()
83 impl fmt::Display for Section { implementation
86 Section::NotStarted => "NotStarted", in fmt()
87 Section::Header => "Header", in fmt()
88 Section::Questions => "question", in fmt()
89 Section::Answers => "answer", in fmt()
90 Section::Authorities => "authority", in fmt()
91 Section::Additionals => "additional", in fmt()
92 Section::Done => "Done", in fmt()
110 pub(crate) fn count(&self, sec: Section) -> u16 { in count()
112 Section::Questions => self.questions, in count()
113 Section::Answers => self.answers, in count()
114 Section::Authorities => self.authorities, in count()
115 Section::Additionals => self.additionals, in count()