Skip to main content

shelf_name

Function shelf_name 

Source
pub fn shelf_name(variant: &Ident) -> RustSafeName
Expand description

The shelf field ONE variant word takes — its snake case, kept spellable where that is a keyword.

A free function beside Upstream::shelf because the front end needs it BEFORE an Upstream exists: two entries whose shelf names would collide are refused while the list is still being built, and refusing them requires the name the collision is about.