organic/src/parser/exiting.rs

18 lines
423 B
Rust
Raw Normal View History

#[derive(Debug, Copy, Clone)]
2023-04-18 01:16:39 +00:00
pub enum ExitClass {
/// Headlines and sections.
Document = 1,
2023-04-18 01:16:39 +00:00
/// Elements who take priority over beta elements when matching.
Alpha = 20,
2023-04-18 01:16:39 +00:00
/// Elements who cede priority to alpha elements when matching.
Beta = 300,
2023-04-18 01:16:39 +00:00
}
2023-04-19 00:44:58 +00:00
impl std::fmt::Display for ExitClass {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "{:?}", self)
}
}