organic/src/context/exiting.rs

21 lines
519 B
Rust
Raw Normal View History

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