add Recipe::is_print()
This commit is contained in:
parent
06e6002327
commit
98353e926a
1 changed files with 8 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue