pub fn by_name(name: &str) -> Option<Unit>Expand description
Look up a unit by an English name, plural, or symbol (case-insensitive) — the surface-syntax
bridge so quantity(2, "inch") / ... in "feet" resolve to a Unit. This is the growable
catalog’s name index; unknown names return None (the front-end turns that into a clean
error). Spelling variants and both singular/plural map to the same unit.