2023-04-18 20:33:01 -04:00
|
|
|
#[derive(Debug, Copy, Clone)]
|
2023-04-17 21:16:39 -04:00
|
|
|
pub enum ExitClass {
|
|
|
|
/// Headlines and sections.
|
2023-04-18 20:33:01 -04:00
|
|
|
Document = 1,
|
2023-04-17 21:16:39 -04:00
|
|
|
|
|
|
|
/// Elements who take priority over beta elements when matching.
|
2023-04-18 20:33:01 -04:00
|
|
|
Alpha = 20,
|
2023-04-17 21:16:39 -04:00
|
|
|
|
|
|
|
/// Elements who cede priority to alpha elements when matching.
|
2023-04-18 20:33:01 -04:00
|
|
|
Beta = 300,
|
2023-08-24 23:34:23 -04:00
|
|
|
|
|
|
|
/// 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)
|
|
|
|
}
|
|
|
|
}
|