diff options
Diffstat (limited to 'server/protocol/src/book.rs')
-rw-r--r-- | server/protocol/src/book.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/protocol/src/book.rs b/server/protocol/src/book.rs index 73b14c07..7c529f22 100644 --- a/server/protocol/src/book.rs +++ b/server/protocol/src/book.rs @@ -70,3 +70,12 @@ pub struct DiagramEdge { pub dst: usize, pub label: Option<Message>, } + +impl NodeStyle { + pub fn is_procuct(&self) -> bool { + matches!( + self, + NodeStyle::IntermediateProduct | NodeStyle::FinalProduct + ) + } +} |