#[derive(Eq, PartialEq)] enum NodeType { Send, Local, Const, Anything, } #[derive(Eq, PartialEq)] struct Pattern { node_type: NodeType, }