Skip to main content

parse_anchor_edge

Function parse_anchor_edge 

Source
pub fn parse_anchor_edge(s: &str) -> Option<AnchorEdge>
Expand description

Parse a string into an AnchorEdge variant.

Returns Some for the four recognized names; None for any other string. This is the SINGLE source of truth for the anchor-edge name list — both the validator (anchor.unknown_edge) and the scene pre-pass use this function so the names cannot diverge.