implement (rules) list api

This commit is contained in:
postscriptum 2026-03-23 09:00:19 +02:00
parent 461f838cc0
commit eeafed077a
4 changed files with 34 additions and 1 deletions

View file

@ -17,3 +17,12 @@ impl Item {
}
}
}
impl std::fmt::Display for Item {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Ending(s) => write!(f, ".{}", s),
Self::Exact(s) => write!(f, "{}", s),
}
}
}