Skip to main content

chain_role_for_node_kind

Function chain_role_for_node_kind 

Source
pub fn chain_role_for_node_kind(kind: &NodeKind) -> ChainStepRole
Expand description

Map a graph NodeKind to its coarse ChainStepRole.

Exhaustive by design (no wildcard arm): adding a NodeKind must be classified here rather than silently falling through to Other.