lerox: Consolidate traits

The auto-implementation scheme doesn't really fit the application
This commit is contained in:
2023-09-25 13:52:21 -05:00
parent 8bc32896c9
commit 71053f1992
2 changed files with 34 additions and 27 deletions

View File

@@ -133,11 +133,11 @@ pub mod lexer {
}
}
impl<'t> lerox::Combinable for Rule<'t> {
impl<'t> lerox::Combinator for Rule<'t> {
fn is_alright(&self) -> bool {
self.is_alright
}
fn alright(self) -> Self {
fn into_alright(self) -> Self {
Self { is_alright: true, ..self }
}
}