add Recipe::is_print()

This commit is contained in:
Sebastian Kuzminsky 2025-04-02 22:40:33 -06:00
parent 06e6002327
commit 98353e926a

View file

@ -146,6 +146,14 @@ impl Recipe {
}
false
}
// A "print" is a recipe whose Action is "print".
pub fn is_print(&self) -> bool {
match self.action {
Action::print => true,
_ => false,
}
}
}
impl Recipe {