Skip to main content

parse_anchor

Function parse_anchor 

Source
pub fn parse_anchor(s: &str) -> Option<Anchor>
Expand description

Parse a string into an Anchor variant.

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