Lines Matching refs:Section
24 pub section: Section,
55 section: Section::Header, in new()
84 fn start_check(&self, section: Section) -> Result<()> { in start_check()
85 if self.section <= Section::NotStarted { in start_check()
97 self.start_check(Section::Questions)?; in start_questions()
98 self.section = Section::Questions; in start_questions()
104 self.start_check(Section::Answers)?; in start_answers()
105 self.section = Section::Answers; in start_answers()
111 self.start_check(Section::Authorities)?; in start_authorities()
112 self.section = Section::Authorities; in start_authorities()
118 self.start_check(Section::Additionals)?; in start_additionals()
119 self.section = Section::Additionals; in start_additionals()
126 Section::Questions => (&mut self.header.questions, Error::ErrTooManyQuestions), in increment_section_count()
127 Section::Answers => (&mut self.header.answers, Error::ErrTooManyAnswers), in increment_section_count()
128 Section::Authorities => (&mut self.header.authorities, Error::ErrTooManyAuthorities), in increment_section_count()
129 Section::Additionals => (&mut self.header.additionals, Error::ErrTooManyAdditionals), in increment_section_count()
130 Section::NotStarted => return Err(Error::ErrNotStarted), in increment_section_count()
131 Section::Done => return Err(Error::ErrSectionDone), in increment_section_count()
132 Section::Header => return Err(Error::ErrSectionHeader), in increment_section_count()
145 if self.section < Section::Questions { in add_question()
148 if self.section > Section::Questions { in add_question()
162 if self.section < Section::Answers { in check_resource_section()
165 if self.section > Section::Additionals { in check_resource_section()
197 if self.section < Section::Header { in finish()
200 self.section = Section::Done; in finish()