From 98353e926a261a4c14eaa0e08eb72a5e818b9872 Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Wed, 2 Apr 2025 22:40:33 -0600 Subject: [PATCH] add Recipe::is_print() --- tools/src/recipe.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/src/recipe.rs b/tools/src/recipe.rs index 28f2108..04eaddb 100644 --- a/tools/src/recipe.rs +++ b/tools/src/recipe.rs @@ -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 {