1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
quick_error! {
#[derive(Debug, PartialEq, Eq, Clone, Hash)]
pub enum ParseError {
NoTeaser {
description("Doc comment did not start with a teaser.")
}
UnexpectedMarkdown(section: String, event: String) {
description("Unexpected Markdown")
display("Unexpected Markdown in section `{sec}`: {event}",
sec=section, event=event)
}
NoIdent {
description("No identifier in list mapping ident -> docs")
}
WrongIdentDocsSeparator {
description("List identifier and doc string must be written like this: `itend`: Docs")
}
}
}